Add missing loop to ownership task.

This commit is contained in:
2021-11-19 10:12:02 +01:00
parent 992517ba85
commit aa82f93975

View File

@@ -36,6 +36,9 @@
- name: Change ownership of volume backups
shell: chown chris:chris {{ backup_dir }}/{{ item.value.container }}/{{ item.key }}-{{ ansible_date_time.iso8601_basic_short }}.tar.gz
become: true
loop: "{{ lookup('dict', volumes) }}"
loop_control:
label: "{{ item.key }}"
- name: Backup mysql databases
shell: docker exec mysql8 mysqldump -u{{ mysql_user }} -p{{ mysql_password }} {{ item }} > {{ backup_dir }}/{{ item }}/db-{{ ansible_date_time.iso8601_basic_short }}.sql