This Ansible playbook installs a fresh version of Docker, and configures it with a few recommendations from the CIS Docker Benchmark.
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.
- name: Install Docker on all machines
hosts: all
become: true
roles:
- docker
Dependencies:
- Vagrant
- Virtualbox
- Ruby
This project uses Test Kitchen to create, provision and test the role using Inspec. With the dependencies installed you can run the tests with:
make install
- download all test dependenciesmake test
- test (destroy, create, converge, setup, verify and destroy) one or more instances
- Sion Williams (sion.williams@ext.ons.gov.uk)