Ansible role to install Ansible.
---
- hosts: servers
roles:
- codeyourinfra.ansible
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.
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! :)