Create the logrotate directories.

This commit is contained in:
2021-11-23 14:02:02 +01:00
parent 08251bf190
commit fe0811863d

View File

@@ -42,7 +42,9 @@
register: backup_dirs
- name: Check logrotate directories
debug: msg="{{ item[0].path }}/{{ item[1] }}"
file:
path: "{{ item[0].path }}/{{ item[1] }}"
file_type: directory
with_nested:
- "{{ backup_dirs.files }}"
- ['daily', 'weekly', 'monthly', 'yearly']