First try to copy backup files.
This commit is contained in:
@@ -15,12 +15,6 @@
|
|||||||
recurse: false
|
recurse: false
|
||||||
register: backup_dirs
|
register: backup_dirs
|
||||||
|
|
||||||
- name: Create logrotate directories
|
- name: Copy backup files
|
||||||
file:
|
debug: var=item
|
||||||
path: "{{ item[0].path }}/{{ item[1] }}"
|
loop: "{{ backup_dirs.files.path }}"
|
||||||
state: directory
|
|
||||||
with_nested:
|
|
||||||
- "{{ backup_dirs.files }}"
|
|
||||||
- ['daily', 'weekly', 'monthly', 'yearly']
|
|
||||||
loop_control:
|
|
||||||
label: "{{ item[0].path }} {{ item[1] }}"
|
|
||||||
Reference in New Issue
Block a user