https://github.com/marverix/ansible-role-docker-ce
Ansible role that installs Docker CE + Docker Compose + Python Docker SDK
https://github.com/marverix/ansible-role-docker-ce
ansible ansible-galaxy-role ansible-role docker docker-ce docker-compose
Last synced: about 2 months ago
JSON representation
Ansible role that installs Docker CE + Docker Compose + Python Docker SDK
- Host: GitHub
- URL: https://github.com/marverix/ansible-role-docker-ce
- Owner: marverix
- License: isc
- Created: 2020-03-28T14:58:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T19:10:11.000Z (about 5 years ago)
- Last Synced: 2025-04-09T20:46:32.319Z (about 1 year ago)
- Topics: ansible, ansible-galaxy-role, ansible-role, docker, docker-ce, docker-compose
- Homepage: https://galaxy.ansible.com/marverix/docker_ce
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Docker CE
[](https://travis-ci.com/marverix/ansible-role-docker-ce)


[](LICENSE)
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
1. The simplest one
```yml
---
- hosts: all
roles:
- marverix.docker_ce
```
1. Skip installation of Docker Compose and Docker SDK
```yml
---
- 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!