Use privilege escalation to change ownership of files.
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user