Ansible script to help install Jenkins on the target server
- Install
ansibleandansible-playbook; - Run command (By default will use SSL certificate):
ansible-playbook -i <YOUR_IP_ADDRESS>, jenkins.yml
-
You can use
roles/jenkins/defaults/main.ymlfor configurationdefaults path to Jenkins,SSL/TLS certificatesandJenkins HTTP/HTTPS portsFor example. If you want use yourslef own
SSL/TLS certificatesset variables:jenkins_user_ssl_private_key: ~/.ssh/My_private_key jenkins_user_ssl_certificate: ~/.ssh/My_ssl_certificate -
For other settings you mast use
roles/jenkins/files/jenkins.envfile.
This ansible script has been tested on CentOS 7 and Ubuntu 16.04-18.04. But you can use Debian and RedHat family systems.