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