/docker-role

Docker Ansible role

BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Docker Ansible role

Basic role syntax check

An Ansible role used to install Docker. Verified to work on CentOS 7, Alpine 3.10 and Ubuntu Bionic instances.

Requirements

A CentOS 7, Alpine 3.10 and Ubuntu Bionic base image.

Role Variables

Variable Required Default Choices Comments
default_retries yes 60 Integer value default number of retries
default_delay yes 60 Integer value default delay in seconds between retries

Example Playbook

An example can be found used in my Hands-on DevOps course's box/ansible/box-playbook-1.yml.

- hosts: boxes
  connection: local
  remote_user: vagrant
  roles:
    - common
    - docker

The above Ansible playbook uses my

  • Common role to configure the instance past the base CentOS 7, Alpine 3.10 or Ubuntu Bionic image
  • This role to install and configure Docker

For more information and to see this role put into action checkout my Hands-on DevOps class project.

License

3-Clause BSD License

Author Information

Michael Joseph Walsh mjwalsh@nemonik.com