2 # file: roles/jenkins_job_health_exporter/tasks/main.yaml
4 - name: Conf - Jenkins Job Health Exporter Config
6 src: "templates/jenkins-job-health-exporter.j2"
7 dest: "/etc/jenkins-job-health-exporter.json"
12 - ansible_hostname == "s42-nomad"
14 - conf-jenkins-job-json
16 - name: Inst - Jenkins Job Health Exporter Binary
18 url: "{{ jenkins_job_health_exporter_url }}/{{ jenkins_job_health_exporter_version }}/jenkins-job-health-exporter"
19 dest: "{{ jenkins_job_health_exporter_target_dir }}/jenkins-job-health-exporter"
22 - ansible_hostname == "s42-nomad"
24 - inst-jenkins-job-binary
26 - name: Inst - Jenkins Job Health Exporter Service
28 src: "templates/jenkins-job-health-exporter.service.j2"
29 dest: "/lib/systemd/system/jenkins-job-health-exporter.service"
34 - ansible_hostname == "s42-nomad"
36 - "Restart Jenkins Job Health Exporter"
38 - inst-jenkins-job-service