iancleary.docker
ARCHIVED
ansible-role-docker
This repository is archived. I will not maintain it anymore. You can do anything allowed by the LICENSE.
For more details, check out this article about NixOS vs Ansible.
This role installs Docker and Docker Compose.
Requirements
Any prerequisites not covered by Ansible or this role should be listed here.
Supported Operating Systems:
- Ubuntu 22.04
- Ubuntu 20.04
Pull Requests are welcome!
Role Variables
Below are the variables you can set for this role, including those from defaults/main.yml, vars/main.yml, and any parameters that can be passed to the role:
docker_pip_version: 6.0.0
This is the version of the Docker PyPI package.
docker_compose_pip_version: 1.29.2
This is the version of the Docker Compose PyPI package.
docker_users: []
List the users you want to add to the Docker group. By default, it is an empty list, allowing the specified users to run Docker without using sudo
.
Dependencies
If there are other roles hosted on Ansible Galaxy that this role depends on, mention them here.
N/A
Example Playbook
Here’s how to use this role, including passing in variables as parameters:
- hosts: servers
user: nonroot
roles:
- role: iancleary.docker
become: true
- hosts: servers
user: root
roles:
- role: iancleary.docker
License
Author Information
This role was created in 2021 by Ian Cleary.
The structure of this repository was inspired by Jeff Geerling.
ansible-galaxy install iancleary.docker