master
omidshj 2025-02-05 21:12:46 +03:30
parent 789321ff37
commit a316fd1ed8
1 changed files with 5 additions and 0 deletions

View File

@ -19,3 +19,8 @@
command: >
tar -czf "{{ backup_dir }}/{{ item }}-{{ weekday.stdout }}.tar.gz" -C "{{ backup_dir }}" "{{ item }}"
loop: "{{ db_names }}"
- name: Delete backed-up directories
file:
path: "{{ backup_dir }}/{{ item }}"
state: absent
loop: "{{ db_names }}"