Collection of Ansible Playbooks to Setup a CI/CD Environment
License: MIT License
Groovy 87.14%Shell 12.86%
ci-cd-playbooks's Introduction
Collection of Ansible Playbooks to Setup a CI/CD Environment
Requirements
Some playbooks use roles from Ansible Galaxy.
Therefore, run following command to install all necessary roles from Ansible Galaxy before using the playbooks:
ansible-galaxy install -r requirements.yml
The playbooks are tested with Ansible 2.4.2.0.
How to setup inventories
Use the test inventory file as template and fill the required group with your used IP Address or domain.
The groups relates to the applications.
Settings for Playbooks
Some setting for Gitlab and Jenkins are outsourced in own variable files (vars/*.yml).
It exists a Vagrantfile for testing and the inventory test is prepared for the vagrant box.
After start the VM with vagrant up, you have to run ./postInstall.sh to prepare the vagrant user for used in Ansible.