Send backup status via exporter to Prometheus
This commit is contained in:
parent
2a6b2273a2
commit
be1cf37ca3
6 changed files with 137 additions and 0 deletions
|
@ -20,3 +20,13 @@
|
|||
- name: Setup borg
|
||||
ansible.builtin.import_tasks: borg.yml
|
||||
tags: borg
|
||||
|
||||
- name: Get installed packages
|
||||
ansible.builtin.package_facts:
|
||||
manager: apt
|
||||
tags: exporter
|
||||
|
||||
- name: Setup Prometheus exporter
|
||||
ansible.builtin.import_tasks: exporter.yml
|
||||
tags: exporter
|
||||
when: "'prometheus-node-exporter' in ansible_facts.packages"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue