marverix.docker_ce
Ansible Role: Docker CE
This Ansible role installs Docker CE, Docker Compose, and the Python Docker SDK on Linux.
Features
- ✔️ Installs Docker Community Edition
- Uninstalls any old versions first
- Allows you to add a specific user to the
docker
group
- ✔️ Installs Docker Compose
- Lets you choose the version to install
- You can skip the installation if you want
- Checks that the latest compatible version of
pip
(20.3.4) is installed
- ✔️ Installs Python Docker SDK
- Lets you choose the version to install
- You can skip the installation if you want
- ✔️ Verified with Molecule
Supported Platforms
- ✔️ Ubuntu 16.04 (Xenial)
- ✔️ Ubuntu 18.04 (Bionic)
- ✔️ Ubuntu 20.04 (Focal)
- ✔️ CentOS 7
- ✔️ CentOS 8
Requirements
- Python
- pip
Role Variables
Variable | Description | Default Value |
---|---|---|
docker_sdk_version |
Version of Python Docker SDK to install. Set to no to skip installation |
4.4.4 |
docker_compose_version |
Version of Docker Compose to install. Set to no to skip installation |
1.26.2 |
docker_user |
User allowed to use Docker | ansible_user_id |
Dependencies
None
Example Playbook
The simplest configuration
--- - hosts: all roles: - marverix.docker_ce
Skip the installation of Docker Compose and Docker SDK
--- - hosts: all roles: - role: marverix.docker_ce vars: docker_sdk_version: no docker_compose_version: no
License
ISC
Thanks
Honestly, after creating this role and learning about Molecule, I found out that another role can also install Docker Compose... Oops! It happens. That role is likely more developed, but I didn't want to discard my efforts. If this role is useful for you, then that's fantastic!
Informazioni sul progetto
Installs Docker CE + Docker Compose + Python Docker SDK
Installa
ansible-galaxy install marverix.docker_ce
Licenza
isc
Download
193
Proprietario
Everyday normal Software Engineer