Fix typo in ansible_date_time variable.
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
src: "{{ item.path }}"
|
||||
dest: "{{ item.path | dirname }}/yearly/{{ item.path | basename }}"
|
||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
||||
when: (ansible_date_time.day == "01" and ansible_data_time.month == "01")
|
||||
when: (ansible_date_time.day == "01" and ansible_date_time.month == "01")
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
src: "{{ item.path }}"
|
||||
dest: "{{ item.path | dirname }}/monthly/{{ item.path | basename }}"
|
||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
||||
when: (ansible_date_time.day == "01" and ansible_data_time.month != "01")
|
||||
when: (ansible_date_time.day == "01" and ansible_date_time.month != "01")
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user