add setup of backup monitoring

This commit is contained in:
2024-04-24 07:39:16 +02:00
parent b526b3938f
commit 959891f06f
3 changed files with 12 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ Role Variables
* burp_password - group_names[0]}}/{{ inventory_hostname }}_burp_password
* burp_encryption_password - group_names[0]}}/{{ inventory_hostname }}_burp_encryption_password
* burp_retention: default [ 7 ]
* burp_watch - wether we monitor backup status - default true
Dependencies
------------

View File

@@ -5,4 +5,5 @@ burp_packages:
burp_cname: "{{ ansible_hostname }}"
burp_retention:
- 7
burp_watch: true
burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"

View File

@@ -82,3 +82,13 @@
src: notify_script
dest: /usr/share/burp/scripts/notify_script
mode: 0755
- name: burp - setup monitoring
when: burp_watch
ansible.builtin.lineinfile:
path: /etc/zabbix/filelist.csv
line: "{{ burp_server_directory }}/{{ ansible_hostname }}/current/timestamp"
state: present
delegate_to: "{{ burp_server }}"