An Ansible role used to install Docker. Verified to work on CentOS 7, Alpine 3.10 and Ubuntu Bionic instances.
A CentOS 7, Alpine 3.10 and Ubuntu Bionic base image.
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 |
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.
3-Clause BSD License
Michael Joseph Walsh mjwalsh@nemonik.com