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