Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willis7/role-docker

Ansible role for Docker on Centos
https://github.com/willis7/role-docker

ansible ansible-role ansible-roles

Last synced: 1 day ago
JSON representation

Ansible role for Docker on Centos

Awesome Lists containing this project

README

        

Docker
=========

This Ansible playbook installs a fresh version of Docker, and configures it with a few recommendations from the [CIS Docker Benchmark][cis].

Role Variables
--------------

`defaults/main.yml` includes a config section which is used to populate `daemon.json`. The defaults used here are set per the [CIS Docker Benchmark][cis].

Example Playbook
----------------

``` yaml
- name: Install Docker on all machines
hosts: all
become: true
roles:
- docker
```

Testing
-------

Dependencies:

* Vagrant
* Virtualbox
* Ruby

This project uses [Test Kitchen][tk] to create, provision and test the role using [Inspec][is]. With the dependencies installed you can run the tests with:

* `make install` - download all test dependencies
* `make test` - test (destroy, create, converge, setup, verify and destroy) one or more instances

Author Information
------------------

* Sion Williams ([email protected])

Additional Resources
--------------------

* [ansible role development](https://blog.superk.org/home/ansible-role-development)

[tk]: https://kitchen.ci/
[is]: https://www.inspec.io/
[cis]: https://www.cisecurity.org/benchmark/docker/