diff --git a/semaphore.yaml b/semaphore.yaml index a64d0ca..47f4d30 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -15,4 +15,13 @@ recurse: false register: backup_dirs - - debug: var=backup_dirs + - name: Create logrotate directories + debug: var=item +# file: +# path: "{{ local_backup }}/{{ item }}" +# state: directory + with_nested: + - "{{ backup_dirs.files }}" + - ['daily', 'weekly', 'monthly', 'yearly'] + loop_control: + label: "{{ item[0] }} {{ item[1] }}"