Fix typo in ansible_date_time variable.
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
src: "{{ item.path }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ item.path | dirname }}/yearly/{{ item.path | basename }}"
|
dest: "{{ item.path | dirname }}/yearly/{{ item.path | basename }}"
|
||||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
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:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
src: "{{ item.path }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ item.path | dirname }}/monthly/{{ item.path | basename }}"
|
dest: "{{ item.path | dirname }}/monthly/{{ item.path | basename }}"
|
||||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
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:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
src: "{{ item.path }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ item.path | dirname }}/yearly/{{ item.path | basename }}"
|
dest: "{{ item.path | dirname }}/yearly/{{ item.path | basename }}"
|
||||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
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:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
src: "{{ item.path }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ item.path | dirname }}/monthly/{{ item.path | basename }}"
|
dest: "{{ item.path | dirname }}/monthly/{{ item.path | basename }}"
|
||||||
with_items: "{{ backup_files.results | map(attribute='files') | list }}"
|
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:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user