diff --git a/monitoring.yml b/monitoring.yml index 38a019d..c31fe86 100755 --- a/monitoring.yml +++ b/monitoring.yml @@ -26,9 +26,9 @@ prometheus_unifi_snmp_targets: - targets: "{{ groups['pacaterie_unifi'] | list | sort }}" prometheus_ups_snmp_targets: - - ups-pn-1.ups.auro.re + - ups-pn-1.ups.auro.re roles: - - prometheus + - prometheus - hosts: prometheus-edc.adm.auro.re vars: @@ -37,7 +37,7 @@ # Prometheus targets.json prometheus_ups_snmp_targets: - - ups-ec-1.ups.auro.re + - ups-ec-1.ups.auro.re prometheus_targets: - targets: | @@ -70,7 +70,7 @@ # Prometheus targets.json prometheus_ups_snmp_targets: - - ups-r3-1.ups.auro.re + - ups-r3-1.ups.auro.re prometheus_targets: - targets: | diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml index 036b58c..8697ef9 100644 --- a/roles/prometheus/tasks/main.yml +++ b/roles/prometheus/tasks/main.yml @@ -55,7 +55,7 @@ content: "{{ prometheus_unifi_snmp_targets | to_nice_json }}" dest: /etc/prometheus/targets_unifi_snmp.json mode: 0644 - when : prometheus_unifi_snmp_targets is defined + when: prometheus_unifi_snmp_targets is defined - name: Configure Prometheus UPS SNMP devices copy: