Add new roles for monitoring

This commit is contained in:
vincent committed 2025-01-09 21:06:28 +01:00
1 parent 98ef8d9896
commit 067b325678
24 files changed
+1084

No files matched your search

@@ -0,0 +1,25 @@
---
- name: Load variables
include_vars: "{{ ansible_os_family|lower }}.yml"
- name: Install Blackbox exporter
tags: blackbox-install
ansible.builtin.package:
name: '{{ blackbox_package }}'
state: latest
- name: Define Blackbox configuration
tags: blackbox-configure
ansible.builtin.template:
src: blackbox.config.j2
dest: '{{ blackbox_config }}'
backup: yes
notify: restart blackbox
- name: Enable Blackbox service
tags: blackbox-enable
ansible.builtin.service:
name: '{{ blackbox_service }}'
state: started
enabled: yes