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