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"
|
path: "{{ backup_dir }}/{{ item.value.container }}/{{ item.key }}-{{ ansible_date_time.iso8601_basic_short }}.tar.gz"
|
||||||
owner: chris
|
owner: chris
|
||||||
group: chris
|
group: chris
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
loop: "{{ lookup('dict', volumes) }}"
|
loop: "{{ lookup('dict', volumes) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user