diff --git a/odroid.yaml b/odroid.yaml index 44dd9e4..b98515e 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -96,7 +96,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 }}" @@ -106,7 +106,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 }}" diff --git a/semaphore.yaml b/semaphore.yaml index 4b9fdc8..603c044 100644 --- a/semaphore.yaml +++ b/semaphore.yaml @@ -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 }}"