Fix CI errors

certbot_on_virtu
Alexandre Iooss 2019-10-02 20:07:50 +02:00
parent 78643a163d
commit b6f2faf279
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,9 @@
# Prometheus targets.json # Prometheus targets.json
prometheus_targets: prometheus_targets:
- labels: {job: node} - labels: {job: node}
targets: "{{ groups['server'] | map('replace', '.org', '.org:9100') | list | sort }}" targets: |
{{ groups['server'] | map('replace', '.org', '.org:9100') |
list | sort }}
- labels: {job: prometheus} - labels: {job: prometheus}
targets: ['localhost:9090'] targets: ['localhost:9090']
prometheus_ups_snmp_targets: prometheus_ups_snmp_targets:

View File

@ -31,7 +31,7 @@
line: "ARGS=\"--web.listen-address=127.0.0.1:9116\"" line: "ARGS=\"--web.listen-address=127.0.0.1:9116\""
notify: Restart prometheus-snmp-exporter notify: Restart prometheus-snmp-exporter
#- name: Configure Prometheus snmp-exporter # - name: Configure Prometheus snmp-exporter
# template: # template:
# src: "prometheus/snmp.yml.j2" # src: "prometheus/snmp.yml.j2"
# dest: "/etc/prometheus/snmp.yml" # dest: "/etc/prometheus/snmp.yml"
@ -60,7 +60,7 @@
- name: Activate prometheus service - name: Activate prometheus service
systemd: systemd:
name: prometheus name: prometheus
enabled: yes enabled: true
state: started state: started
- name: Indicate role in motd - name: Indicate role in motd