Change ownership for created volume backups on minisforum.

This commit is contained in:
2025-04-24 11:22:41 +02:00
parent 9a41fefce6
commit 9d2c1a62b2

View File

@@ -60,3 +60,15 @@
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
loop_control:
label: "{{ item[1] }}"
- name: Change ownership of volume backups
file:
path: {{ backup_location }}{{ item[0].name }}/{{ item[1] }}-volume-{{ ansible_date_time.iso8601_basic_short }}.tar.gz
owner: chris
group: chris
become: yes
become_method: sudo
become_user: root
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
loop_control:
label: "{{ item[1] }}"