ansible-lol/ansible/playbooks/monitoring.yml

36 lines
692 B
YAML
Raw Normal View History

2025-01-09 21:06:28 +01:00
---
# Playbook to set up monitoring modules
- name: Install and configure the control node
hosts: monitoring
become: yes
roles:
- grafana
- name: Install and configure Prometheus node - Main node
hosts: monitoring
become: yes
roles:
- prometheus
vars:
blackbox: false
scrape_files:
- /etc/prometheus/scrape-main.yml
2025-01-09 21:40:22 +01:00
#- name: Install and configure Prometheus node - Blackbox nodes
# hosts: blackbox
# become: yes
# roles:
# - prometheus
# - blackbox-exporter
# vars:
# blackbox: true
# scrape_files:
# - /etc/prometheus/scrape-blackbox.yml
2025-01-09 21:06:28 +01:00
- name: Install and configure nodes
hosts: all
become: yes
roles:
- node-exporter