2017-03-31 19:39:09 +02:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: add the user that will run the jenkins jobs
|
2019-05-01 17:22:42 +02:00
|
|
|
user: name={{ jenkins_username }} home={{ jenkins_dest }} shell={{ jenkins_slaves_shell }} generate_ssh_key=yes
|
2017-03-31 19:39:09 +02:00
|
|
|
|
|
|
|
- name: Daily cron job to cleanup the /tmp junk
|
2019-05-01 18:06:47 +02:00
|
|
|
template: src=tmp-cleaner.j2 dest=/etc/cron.daily/jenkins_tmp_cleaner owner=root group=root mode=0755
|
2017-03-31 19:39:09 +02:00
|
|
|
|
|
|
|
when: jenkins_slave
|
|
|
|
tags: [ 'jenkins', 'jenkins_slave' ]
|