codeyourinfra.docker_compose
docker_compose
Ansible script to install docker-compose.
Example Playbook
---
- hosts: servers
roles:
- codeyourinfra.docker_compose
Requirements
This script needs the Codeyourinfra Docker Ansible script because docker-compose requires Docker to work. Docker is installed before docker-compose.
Please keep facts enabled, because the codeyourinfra.docker
script needs the ansible_distribution_release variable, which is collected during the gathering facts phase.
Build Process
The building of this script is done using Travis CI. During the build, the script is tested with Molecule.
The build will also run if there are any changes made to the codeyourinfra.docker
script. After all, we want to avoid issues from any changes in the main code :)
Try it Yourself
In your Python virtual environment, run:
pip install -r requirements.txt
Then run:
molecule test
Author Information
@gustavomcarmo is a contributor to Codeyourinfra. Join us too! :)
ansible-galaxy install codeyourinfra.docker_compose