Check iteration over logrotate.
This commit is contained in:
@@ -15,4 +15,13 @@
|
|||||||
recurse: false
|
recurse: false
|
||||||
register: backup_dirs
|
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] }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user