Add basic Prometheus role
This commit is contained in:
parent
11140291b4
commit
da250bc2be
4 changed files with 10 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
- role: actual
|
- role: actual
|
||||||
- role: changedetection
|
- role: changedetection
|
||||||
- role: pi-hole
|
- role: pi-hole
|
||||||
|
- role: monitoring
|
||||||
vars:
|
vars:
|
||||||
# devsec.hardening.ssh_hardening vars:
|
# devsec.hardening.ssh_hardening vars:
|
||||||
ssh_client_port: 22 # Default, but duplicated here for documentation purpose. Not changed because its only accessible via LAN.
|
ssh_client_port: 22 # Default, but duplicated here for documentation purpose. Not changed because its only accessible via LAN.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
collections:
|
collections:
|
||||||
# from Ansible Galaxy
|
|
||||||
# See: https://galaxy.ansible.com/ui/repo/published/devsec/hardening/
|
# See: https://galaxy.ansible.com/ui/repo/published/devsec/hardening/
|
||||||
- name: devsec.hardening
|
- name: devsec.hardening
|
||||||
version: 9.0.1
|
version: 9.0.1
|
||||||
|
# See: https://prometheus-community.github.io/ansible/branch/main/prometheus_role.html#ansible-collections-prometheus-prometheus-prometheus-role
|
||||||
|
- name: prometheus.prometheus
|
||||||
|
version: 0.17.1
|
||||||
|
|
|
||||||
4
roles/monitoring/tasks/main.yml
Normal file
4
roles/monitoring/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
- name: Include Prometheus role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: prometheus.prometheus.prometheus
|
||||||
2
roles/monitoring/vars/main/defaults.yml
Normal file
2
roles/monitoring/vars/main/defaults.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
prometheus_version: "2.54.1"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue