docker

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.

About

All you need to boot a Docker server

Install
ansible-galaxy install Tecnativa/ansible-role-docker
GitHub repository
License
apache-2.0
Downloads
12447
Owner
Odoo Experts