Ansible role to install Jenkins.
---
- hosts: servers
roles:
- codeyourinfra.jenkins
The role is dependent of Codeyourinfra's Java 8 Ansible role, once we need Java to run Jenkins. Java is so installed before the Jenkins installation.
The build process is performed by Travis CI. During the build, Molecule is used to test the 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! :)