This role installs Docker and does some post-install tasks to prepare hosts for running Docker containers.
ansible-galaxy install eriklotin.docker
or install locally:
ansible-galaxy install eriklotin.docker -p ./roles/
List of system users which will be added to docker system group.
docker_users: []
Python pip package name. If you use Python3 on your servers, then set python_pip_package
to python3-pip
.
Default is python-pip
.
python_pip_package: "python-pip"
- hosts: all
vars:
- docker_users: ["ubuntu"]
roles:
- role: eriklotin.docker
become: true
This role uses geerlingguy.docker role to install Docker.
MIT. See LICENSE
file.
Created in 2019-02 by Erik Lotin.