---
- block: 
    - name: add the user that will run the jenkins jobs
      user: name={{ jenkins_username }} home={{ jenkins_dest }} shell={{ jenkins_slaves_shell }} generate_ssh_key=yes

    - name: Daily cron job to cleanup the /tmp junk
      template: src=tmp-cleaner.j2 dest=/etc/cron.daily/jenkins_tmp_cleaner owner=root group=root mode=0755

  when: jenkins_slave
  tags: [ 'jenkins', 'jenkins_slave' ]