diff options
Diffstat (limited to 'fdio.infra.ansible/roles/prometheus_exporter')
-rw-r--r-- | fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml | 2 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml b/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml index f61c26e1a8..526dcf5dce 100644 --- a/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml +++ b/fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml @@ -22,4 +22,4 @@ modules: query_name: "jenkins.fd.io" query_type: "A" valid_rcodes: - - NOERROR
\ No newline at end of file + - NOERROR diff --git a/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml b/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml index 3f4b563352..3fe40f031a 100644 --- a/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml +++ b/fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml @@ -3,7 +3,7 @@ - name: Inst - Update Package Cache (APT) apt: - update_cache: yes + update_cache: true cache_valid_time: 3600 when: - ansible_distribution|lower == 'ubuntu' @@ -23,10 +23,10 @@ image: "{{ ne_image }}" state: "started" restart_policy: "unless-stopped" - detach: yes + detach: true ports: - - "9100:9100" - privileged: yes + - "9100:9100" + privileged: true command: - "--path.procfs=/host/proc" - "--path.rootfs=/rootfs" @@ -49,8 +49,8 @@ - name: Conf - Prometheus Blackbox Exporter copy: - src: "files/blackbox.yml" - dest: "/etc/prometheus/blackbox.yml" + src: "files/blackbox.yml" + dest: "/etc/prometheus/blackbox.yml" tags: - prometheus-conf-blackbox-exporter @@ -60,13 +60,13 @@ image: "{{ be_image }}" state: "started" restart_policy: "unless-stopped" - detach: yes + detach: true ports: - - "9115:9115" - privileged: yes + - "9115:9115" + privileged: true command: - "--config.file=/config/blackbox.yml" volumes: - "/etc/prometheus/blackbox.yml:/config/blackbox.yml:ro" tags: - - prometheus-inst
\ No newline at end of file + - prometheus-inst |