Ansible role to install docker-compose.
---
- hosts: servers
roles:
- codeyourinfra.docker_compose
The role is dependent of Codeyourinfra Docker Ansible role, once we need Docker to run docker-compose. Docker is so installed before the docker-compose installation.
Please don't turn off facts, because the codeyourinfra.docker
role requires the ansible_distribution_release variable, obtained through the gathering facts phase.
The build process is performed in Travis CI. During the build, the role is tested by using Molecule.
The build is also triggered if any change is made in the codeyourinfra.docker
role. After all, nobody wants some issue introduced by a change made in the upstream code :)
Inside your Python virtual environment, run:
pip install -r requirements.txt
And then:
molecule test
@gustavomcarmo is a contributor of Codeyourinfra. Get on board too! :)