From 0f18762b710ac57d05b4f0f82e6c108a43fb2dc8 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 23 Nov 2021 13:39:33 +0100 Subject: [PATCH] Create the rotation directories. --- semaphore.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/semaphore.yaml b/semaphore.yaml index c1df0d0..2007a98 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -16,12 +16,11 @@ register: backup_dirs - name: Create logrotate directories - debug: msg="{{ item[0].path }}/{{ item[1] }}" -# file: -# path: "{{ local_backup }}/{{ item }}" -# state: directory + file: + path: "{{ item[0].path }}/{{ item[1] }}" + state: directory with_nested: - "{{ backup_dirs.files }}" - ['daily', 'weekly', 'monthly', 'yearly'] loop_control: - label: "{{ item[0] }} {{ item[1] }}" + label: "{{ item[0].path }} {{ item[1] }}"