An Ansible role that installs Docker.
This role has been tested on:
- Amazon Linux 2
- ArchLinux
- Centos 7 & 8
- Ubuntu 20.04
The variable that you're most likely going to want to change is docker_users
.
That variable is a list of all the users on the system that should be added to
the docker
group.
docker_users: [ admin, docker_admin ]
- hosts: k8s-nodes
roles:
- {role: install_docker, docker_users: [admin]}
MIT
This role was created by shnee.