Use privilege escalation to change ownership of files.

This commit is contained in:
2021-11-19 10:21:38 +01:00
parent 7b35cdaaaa
commit 7a81faced1

View File

@@ -38,6 +38,8 @@
path: "{{ backup_dir }}/{{ item.value.container }}/{{ item.key }}-{{ ansible_date_time.iso8601_basic_short }}.tar.gz"
owner: chris
group: chris
become: yes
become_method: sudo
loop: "{{ lookup('dict', volumes) }}"
loop_control:
label: "{{ item.key }}"