docker
Docker
Set up docker servers with all of the docker project software stack.
Requirements
Only Ansible on Python 3 is supported.
Supported operating systems:
Ubuntu:
- 16.04
- 18.04
- 20.04
- 22.04
Role Variables
See the defaults
directory to know all the variables you are allowed to
override. All the non-obvious ones are docummented inline.
Example Playbook
- hosts: docker
roles:
- role: tecnativa.docker
vars:
docker_app_state: present
docker_compose_state: present
docker_engine_state: present
docker_machine_state: present
docker_swarm_state: present
For a bigger example, go see our test playbooks.
Docker compose v2 filtered by host group
A feature has been added that allows the execution of the command to install Docker Compose on hosts using operating systems that by default install Docker Compose v2. This is done in the file https://github.com/Tecnativa/ansible-role-docker/blob/master/tasks/compose.yml, checking if the host belongs to the compose_v2_servers group.
Support
Are you a Doodba user? Welcome to the family! 👪🐳
This project and Doodba are completely independent, but interoperability is guaranteed. You can use this role to set up your Doodba hosts.
Author Information
This project is maintained by:
Tecnativa is an IT consulting company specialized in Odoo and provides Odoo development, installation, maintenance and hosting services.