aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-03-22 08:46:04 +0000
committerPeter Mikus <pmikus@cisco.com>2021-03-29 08:43:57 +0000
commit571108e9ccec90c3719f5336650d624b4e8e9c47 (patch)
treeae356073df85ca83156c016f0bc2ee9ad9aeec35 /resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
parentac7045fed2e1593fbbdf22113fb2983989583c7a (diff)
Infra: Ansible sync
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I4b1516a957447b8356949626e385b9317ed1933c (cherry picked from commit 3402c93328d877ef09a026f5a491eabd34f8bc1e)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
new file mode 100644
index 0000000000..5dbe476019
--- /dev/null
+++ b/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
@@ -0,0 +1,38 @@
+---
+# file: roles/jenkins_job_health_exporter/tasks/main.yaml
+
+- name: Conf - Jenkins Job Health Exporter Config
+ template:
+ src: "templates/jenkins-job-health-exporter.j2"
+ dest: "/etc/jenkins-job-health-exporter.json"
+ owner: "root"
+ group: "root"
+ mode: "0644"
+ when:
+ - ansible_hostname == "s42-nomad"
+ tags:
+ - conf-jenkins-job-json
+
+- name: Inst - Jenkins Job Health Exporter Binary
+ 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 == "s42-nomad"
+ tags:
+ - inst-jenkins-job-binary
+
+- name: Inst - Jenkins Job Health Exporter Service
+ 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 == "s42-nomad"
+ notify:
+ - "Restart Jenkins Job Health Exporter"
+ tags:
+ - inst-jenkins-job-service