Skip to content

Ansible role to install docker and all the needed collection of related tools

License

Notifications You must be signed in to change notification settings

Tecnativa/ansible-role-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

Build Status GitHub license Ansible Galaxy

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

Author Information

This project is maintained by:

Tecnativa logo

Tecnativa is an IT consulting company specialized in Odoo and provides Odoo development, installation, maintenance and hosting services.