Use date variable from parent playbook.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Fetch volume backups
|
- name: Fetch volume backups
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ backup_location }}{{ item[0].name }}/{{ item[1] }}-volume-{{ ansible_date_time.iso8601_basic_short }}.tar.gz"
|
src: "{{ backup_location }}{{ item[0].name }}/{{ item[1] }}-volume-{{ date }}.tar.gz"
|
||||||
dest: "{{ local_backup }}{{ item[0].name }}/"
|
dest: "{{ local_backup }}{{ item[0].name }}/"
|
||||||
flat: yes
|
flat: yes
|
||||||
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
loop: "{{ containers | subelements('volumes', skip_missing=True) }}"
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
- name: Fetch database backups
|
- name: Fetch database backups
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ backup_location }}{{ item[0].name }}/{{ item[1].container }}-{{ ansible_date_time.iso8601_basic_short }}.sql"
|
src: "{{ backup_location }}{{ item[0].name }}/{{ item[1].container }}-{{ date }}.sql"
|
||||||
dest: "{{ local_backup }}{{ item[0].name }}/"
|
dest: "{{ local_backup }}{{ item[0].name }}/"
|
||||||
flat: yes
|
flat: yes
|
||||||
loop: "{{ containers | subelements('database', skip_missing=True) }}"
|
loop: "{{ containers | subelements('database', skip_missing=True) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user