docker_ce
Ansible Role: Docker CE
Ansible role that installs on linux Docker CE + Docker Compose + Python Docker SDK.
Features
- ✔️ Installing Docker Community Edition
- Removes all old versions before
- You can specify which user should be added to group
docker
- ✔️ Installing Docker Compose
- You can define which version should be installed
- You can skip installation
- Double-check that the last cross-python version of
pip
is installed (20.3.4)
- ✔️ Installing Python Docker SDK
- You can define which version should be installed
- You can skip installation
- ✔️ Tested with Molecule Verify
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 be installed. Set no to skip installation |
4.4.4 |
docker_compose_version |
Version of Docker Compose to be installed. Set no to skip installation |
1.26.2 |
docker_user |
User that should be allowed to use Docker | ansible_user_id |
Dependencies
None
Example Playbook
The simplest one
--- - hosts: all roles: - marverix.docker_ce
Skip 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
To be honest after I wrote this role, learnt Molecule, spend couple hours etc... I realized that https://github.com/geerlingguy/ansible-role-docker also can install Docker Compose... Welp... It happens. Mentioned role is probably more mature, but I didn't wanted to just throw away my work and time. If this role will help you - then great!
Install
ansible-galaxy install marverix/ansible-role-docker-ce
License
isc
Downloads
183
Owner
Everyday normal Software Engineer