Fix typo.
This commit is contained in:
@@ -105,15 +105,15 @@
|
|||||||
- name: Search for the created backups
|
- name: Search for the created backups
|
||||||
find:
|
find:
|
||||||
paths: "{{ backup_dir }}{{ item }}"
|
paths: "{{ backup_dir }}{{ item }}"
|
||||||
file_tpye: file
|
file_type: file
|
||||||
patterns: '*.gz'
|
patterns: '*.gz'
|
||||||
recurse: false
|
recurse: false
|
||||||
register: backups
|
register: backup_files
|
||||||
loop: "{{ systems }}"
|
loop: "{{ systems }}"
|
||||||
|
|
||||||
- name: Store the daily backup
|
- name: Store the daily backup
|
||||||
debug: var=item
|
debug: var=item
|
||||||
with_items: "{{ oldBackups.results | map(attribute='files') | list }}"
|
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
||||||
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")
|
when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01")
|
||||||
|
|
||||||
- name: Cleanup original backup files
|
- name: Cleanup original backup files
|
||||||
|
|||||||
Reference in New Issue
Block a user