Use shell date insted of ansible fact gathering.

This commit is contained in:
2026-04-29 09:54:15 -07:00
parent bf4f19e654
commit 4a9d06f203

View File

@@ -26,7 +26,7 @@
# ---------------------------------------------------------------------------
- name: Create backup of current config.xml
ansible.builtin.raw:
cmd: cp /conf/config.xml /conf/config.xml.pre_upgrade_{{ ansible_date_time.epoch }}
cmd: cp /conf/config.xml /conf/config.xml.pre_upgrade_$(date +%s)
become: yes
register: _config_backup
when: perform_upgrade | bool