This playbook has below roles:
- jenkins-installation-role
All common variables are reused from common/defaults/main.yml
To configure Jenkins on your CentOS or MacOS just paste the below commands in terminal:
Command to run: ansible-playbook -i inventory/local playbook.yml
Pre-requisites:
Create a new inventory file like staging, uat or production
inventory/staging
[group-name]
centos ansible_host=<ip_address_of_the_remote_machine> ansible_user=<user_of_remote_machine>
Command to run: ansible-playbook -i inventory/local playbook.yml -k ( Will prompt to enter remote machine password )