chore: added iac

Signed-off-by: ITQ <itq.dev@ya.ru>
This commit is contained in:
ITQ
2025-11-21 18:16:52 +03:00
parent 5d66fcd0ca
commit 44df678c82
43 changed files with 1598 additions and 45 deletions
@@ -0,0 +1,22 @@
---
- 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