init: initial commit

This commit is contained in:
ITQ
2025-11-17 22:25:00 +03:00
commit 681e8da227
41 changed files with 1555 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
- name: Restart prometheus-node-exporter
ansible.builtin.service:
name: prometheus-node-exporter
state: restarted
+22
View File
@@ -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