Compress the database backups on minisforum.

This commit is contained in:
2025-04-24 11:00:36 +02:00
parent f4fd3f44b2
commit 750cfb429b

View File

@@ -46,9 +46,8 @@
loop_control:
label: "{{ item[1].name }}"
- name: Gzip all database backup files
ansible.builtin.debug:
msg: '{{ item[0].name }}' # Container name
- name: Compress all database backup files
shell: gzip {{ backup_location }}{{ item[0].name }}/{{ item[1].container }}-{{ ansible_date_time.iso8601_basic_short }}.sql
loop: "{{ containers | subelements('database', skip_missing=True) }}"
loop_control:
label: "{{ item[1].name }}"