Fixes for env file archiving
This commit is contained in:
parent
ddf60af4c2
commit
01e4a973e0
@ -159,11 +159,11 @@
|
|||||||
block:
|
block:
|
||||||
- name: Show file list
|
- name: Show file list
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: all_env_files.files
|
msg: "{{ all_env_files.files | map(attribute='path') | list }}"
|
||||||
|
|
||||||
- name: Archive .env files
|
- name: Archive .env files
|
||||||
community.general.archive:
|
community.general.archive:
|
||||||
path: "{{ all_env_files.files }}"
|
path: "{{ all_env_files.files | map(attribute='path') | list }}"
|
||||||
dest: >-
|
dest: >-
|
||||||
/backup/{{ inventory_hostname }}_{{ now().strftime("%Y%m%d%H%M%S") }}.tar.gz
|
/backup/{{ inventory_hostname }}_{{ now().strftime("%Y%m%d%H%M%S") }}.tar.gz
|
||||||
format: gz
|
format: gz
|
||||||
|
Loading…
Reference in New Issue
Block a user