Fixes for env file archiving

This commit is contained in:
Bradley Bickford 2025-08-25 20:50:34 -04:00
parent ddf60af4c2
commit 01e4a973e0

View File

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