aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/jenkins_job_health_exporter
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-07-08 07:55:08 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-07-08 08:20:55 +0000
commit95fb2af4db9defbcb60bcd7d321dbd2ce277eac6 (patch)
tree1c9f1674548ae0104b2e7b4a9fc082a4ca537795 /fdio.infra.ansible/roles/jenkins_job_health_exporter
parentba25ef9fb58418e85d0eb34a183d6d9c2323886e (diff)
feat(ansible): Migrate Ubuntu Jammy III.
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I0e2d2efbb4e4c9ab9d66198eb15bc9e49fb06eb6
Diffstat (limited to 'fdio.infra.ansible/roles/jenkins_job_health_exporter')
-rw-r--r--fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml2
-rw-r--r--fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml12
2 files changed, 7 insertions, 7 deletions
diff --git a/fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml b/fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml
index 29fee98fed..01849fd92e 100644
--- a/fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml
+++ b/fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml
@@ -2,7 +2,7 @@
# file roles/jenkins_job_health_exporter/handlers/main.yaml
- name: Restart Jenkins Job Health Exporter
- systemd:
+ ansible.builtin.systemd:
daemon_reload: true
enabled: true
name: "jenkins-job-health-exporter"
diff --git a/fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml b/fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
index 5dbe476019..55cbea92de 100644
--- a/fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml
@@ -2,36 +2,36 @@
# file: roles/jenkins_job_health_exporter/tasks/main.yaml
- name: Conf - Jenkins Job Health Exporter Config
- template:
+ 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 == "s42-nomad"
+ - ansible_hostname == "s16-nomad"
tags:
- conf-jenkins-job-json
- name: Inst - Jenkins Job Health Exporter Binary
- get_url:
+ 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 == "s42-nomad"
+ - ansible_hostname == "s16-nomad"
tags:
- inst-jenkins-job-binary
- name: Inst - Jenkins Job Health Exporter Service
- template:
+ 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 == "s42-nomad"
+ - ansible_hostname == "s16-nomad"
notify:
- "Restart Jenkins Job Health Exporter"
tags: