From a7e2e641243bfba610a2c62219cf541dc77b5384 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 23 Nov 2021 13:56:00 +0100 Subject: [PATCH] Fix directory permissions. --- semaphore.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/semaphore.yaml b/semaphore.yaml index 58a91f1..d19445a 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -21,4 +21,14 @@ remote_src: true src: "{{ item.path }}" dest: "{{ backup_dir }}" - loop: "{{ backup_dirs.files }}" \ No newline at end of file + loop: "{{ backup_dirs.files }}" + loop_control: + label: "{{ item.path }}" + + - name: Correct directory owner + become: yes + file: + path: "{{ backup_dir }}" + owner: chris + group: chris + recurse: yes \ No newline at end of file