We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6492e commit 47e8e4eCopy full SHA for 47e8e4e
Ansible/roles/dump_databases/tasks/main.yml
@@ -19,3 +19,14 @@
19
path: "{{ item.path }}"
20
state: absent
21
loop: "{{ list_old_dumps_zabbix.files }}"
22
+
23
+- name: "Get Zabbix database dump names and sizes"
24
+ ansible.builtin.shell:
25
+ cmd: du -hd1 /data/podman/volumes/postgres/zabbix/backup/*
26
+ register: size_zabbix_dump_files
27
+ changed_when: false
28
29
+- name: "Show Zabbix database dump files"
30
+ ansible.builtin.debug:
31
+ msg: "{{ size_zabbix_dump_files.stdout_lines }}"
32
+ when: size_zabbix_dump_files.stdout_lines | length > 0
0 commit comments