Create the rotation directories.
This commit is contained in:
@@ -16,12 +16,11 @@
|
|||||||
register: backup_dirs
|
register: backup_dirs
|
||||||
|
|
||||||
- name: Create logrotate directories
|
- name: Create logrotate directories
|
||||||
debug: msg="{{ item[0].path }}/{{ item[1] }}"
|
file:
|
||||||
# file:
|
path: "{{ item[0].path }}/{{ item[1] }}"
|
||||||
# path: "{{ local_backup }}/{{ item }}"
|
state: directory
|
||||||
# state: directory
|
|
||||||
with_nested:
|
with_nested:
|
||||||
- "{{ backup_dirs.files }}"
|
- "{{ backup_dirs.files }}"
|
||||||
- ['daily', 'weekly', 'monthly', 'yearly']
|
- ['daily', 'weekly', 'monthly', 'yearly']
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item[0] }} {{ item[1] }}"
|
label: "{{ item[0].path }} {{ item[1] }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user