Files
RekomenciBackend/infrastructure/iac/ansible/roles/monitoring/tasks/main.yaml
T
ITQ 44df678c82 chore: added iac
Signed-off-by: ITQ <itq.dev@ya.ru>
2025-11-21 18:49:30 +03:00

23 lines
639 B
YAML

---
- name: Install monitoring tools
ansible.builtin.apt:
name: "{{ system_packages.monitoring }}"
state: present
tags: monitoring
- name: Manage Prometheus node exporter
block:
- name: Install Prometheus node exporter
ansible.builtin.apt:
name: prometheus-node-exporter
state: present
notify: Restart prometheus-node-exporter
- name: Ensure Prometheus node exporter is running and enabled
ansible.builtin.systemd:
name: prometheus-node-exporter
state: started
enabled: true
when: monitoring_prometheus_node_exporter | bool
tags: monitoring, prometheus