Ansible role to install Docker.
---
- hosts: servers
roles:
- codeyourinfra.docker
The role requires some variables obtained through the gathering facts phase. So please don't turn off facts.
The build process is performed in Travis CI. During the build, the role is tested by using Molecule.
If the build is succeeded, dependent roles may have also its builds triggered, thanks to the travis-dependent-builds project. One example is the Codeyourinfra docker-compose Ansible role.
First of all, create your Python virtual environment and activate it:
python -m venv env && source env/bin/activate
After that, install all requirements:
pip install wheel && pip install -r requirements.txt
Finally, execute the test:
molecule test
@gustavomcarmo is a contributor of Codeyourinfra. Get on board too! :)