blob: efdc26a6d2f4849e3c7ae31940821947fba149c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
# file: roles/jenkins_job_health_exporter/tasks/main.yaml
- name: Conf - Jenkins Job Health Exporter Config
ansible.builtin.template:
src: "templates/jenkins-job-health-exporter.j2"
dest: "/etc/jenkins-job-health-exporter.json"
owner: "root"
group: "root"
mode: "0644"
when:
- ansible_hostname == "s22-nomad"
tags:
- conf-jenkins-job-json
- name: Inst - Jenkins Job Health Exporter Binary
ansible.builtin.get_url:
url: "{{ jenkins_job_health_exporter_url }}/{{ jenkins_job_health_exporter_version }}/jenkins-job-health-exporter"
dest: "{{ jenkins_job_health_exporter_target_dir }}/jenkins-job-health-exporter"
mode: "0755"
when:
- ansible_hostname == "s22-nomad"
tags:
- inst-jenkins-job-binary
- name: Inst - Jenkins Job Health Exporter Service
ansible.builtin.template:
src: "templates/jenkins-job-health-exporter.service.j2"
dest: "/lib/systemd/system/jenkins-job-health-exporter.service"
owner: "root"
group: "root"
mode: "0644"
when:
- ansible_hostname == "s22-nomad"
notify:
- "Restart Jenkins Job Health Exporter"
tags:
- inst-jenkins-job-service
|