diff --git a/semaphore.yaml b/semaphore.yaml index a665a10..5a1f37f 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -25,6 +25,16 @@ loop_control: label: "{{ item.path }}" + - name: Cleanup volume's backup directories + become: yes + file: + path: "{{ local_backup }}" + state: absent + loop: "{{ backup_dirs.files }}" + loop_control: + label: "{{ item.path }}" + + - name: Correct directory owner become: yes file: