Install Jenkins JNLP slave on Linux.
- Ansible 2.2 or higher.
- Linux with systemd.
Tested:- Ubuntu
- 16.04 (xenial)
- 18.04 (bionic)
- CentOS
- 7
- Ubuntu
- Create user and install Java to run Jenkins on slave machine.
- Create node on Jenkins master.
- required
jenkins_master
URL of Jenkins server to connect to.jenkins_slave_secret
Secret key to access Jenkins server as the node.
- defaults
jenkins_slave_user
User to run Jenkins slave. Default value isjenkins
.jenkins_slave_group
Group to run Jenkins slave. Default value isjenkins
.jenkins_slave_name
Node name of Jenkins slave. Default value is{{ ansible_hostname }}
.jenkins_slave_home
Root directory of Jenkins slave. Default value is/var/lib/jenkins
.jenkins_slave_java
Java binary path. Default value is/usr/bin/java
.
None.
- hosts: servers
roles:
- { role: kobanyan.jenkins-jnlp-slave,
jenkins_master: http://jenkins_master,
jenkins_slave_secret: secret }
MIT / BSD