diff options
Diffstat (limited to 'fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks')
-rw-r--r-- | fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml | 12 |
1 files changed, 6 insertions, 6 deletions
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: |