Check iteration over logrotate.

This commit is contained in:
2021-11-23 13:34:31 +01:00
parent d77ed508d9
commit 4ef7f19af7

View File

@@ -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] }}"