ansible/monitoring.yml
2019-11-01 14:16:32 +01:00

28 lines
644 B
YAML

---
# Deploy Prometheus
- hosts: prometheus-fleming.adm.auro.re
vars:
# Prometheus targets.json
prometheus_targets:
- targets: "{{ groups['server'] | list | sort }}"
prometheus_unifi_snmp_targets:
- targets: []
roles:
- prometheus
- prometheus-alertmanager
- hosts: prometheus-pacaterie.adm.auro.re
vars:
# Prometheus targets.json
prometheus_targets:
- targets: "{{ groups['server'] | list | sort }}"
prometheus_unifi_snmp_targets:
- targets: []
roles:
- prometheus
- prometheus-alertmanager
# Monitor all hosts
- hosts: fleming,pacaterie
roles:
- prometheus-node