Set up docker servers with all of the docker project software stack.
Only Ansible on Python 3 is supported.
Supported operating systems:
-
Ubuntu:
- 16.04
- 18.04
- 20.04
- 22.04
See the defaults
directory to know all the variables you are allowed to
override. All the non-obvious ones are docummented inline.
- 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.
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.
-
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.
This project is maintained by:
Tecnativa is an IT consulting company specialized in Odoo and provides Odoo development, installation, maintenance and hosting services.