willis7 / role-docker

Ansible role for Docker on Centos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker

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

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.

Example Playbook

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

Testing

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 dependencies
  • make test - test (destroy, create, converge, setup, verify and destroy) one or more instances

Author Information

Additional Resources

About

Ansible role for Docker on Centos


Languages

Language:Ruby 92.5%Language:Makefile 7.5%