This role create a jenkins slave via JNLP
You should have a jenkins master already install.
Variables | Required | Default value | Description |
---|---|---|---|
jenkins_master_url | true | None | Url of ypur jenkins master |
jenkins_master_user | true | None | Username for connection to master |
jenkins_master_password | true | None | Password for connection to master |
jenkins_slave_home | true | None | Jenkins slave home path (I suggest you to configure a fileSystem) |
jenkins_slave_user | true | None | Configure the user on jenkins slave |
jenkins_slave_group | true | None | Configure group on jenkins slave |
jenkins_slave_name | true | None | Name of your jenkins slave node |
singleplatform-eng.users
geerlingguy.java
- hosts: servers
roles:
- role: ansible-role-jenkins-slave
jenkins_master_url: "http://127.0.0.1:8080"
jenkins_master_user: admin
jenkins_master_password: password
jenkins_slave_home: /home/jenkins
jenkins_slave_nb_executor: 5
jenkins_slave_user: jenkins
jenkins_slave_group: jenkins
jenkins_slave_name: docker-slave
If you only want to install slave service (without registering to the master), you can use --skip-tags "register"