Remove ownership of volume backups.
This commit is contained in:
@@ -47,14 +47,14 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item[1] }}"
|
label: "{{ item[1] }}"
|
||||||
|
|
||||||
- name: Change ownership of volume backups
|
# - name: Change ownership of volume backups
|
||||||
file:
|
# file:
|
||||||
path: "{{ backup_location }}{{ item[0].name }}/{{ item[1] }}-volume-{{ ansible_date_time.iso8601_basic_short }}.tar.gz"
|
# path: "{{ backup_location }}{{ item[0].name }}/{{ item[1] }}-volume-{{ ansible_date_time.iso8601_basic_short }}.tar.gz"
|
||||||
owner: chris
|
# owner: chris
|
||||||
group: chris
|
# group: chris
|
||||||
become: yes
|
# become: yes
|
||||||
become_method: sudo
|
# become_method: sudo
|
||||||
become_user: root
|
# become_user: root
|
||||||
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
# loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
||||||
loop_control:
|
# loop_control:
|
||||||
label: "{{ item[1] }}"
|
# label: "{{ item[1] }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user