Fix typo in ansible_date_time variable.

This commit is contained in:
chsteinle
2021-12-01 04:57:59 +01:00
parent f81024e9c3
commit 31e1076957
2 changed files with 4 additions and 4 deletions

View File

@@ -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 }}"

View File

@@ -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 }}"