Use shell date insted of ansible fact gathering.
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
- name: Create backup of current config.xml
|
- name: Create backup of current config.xml
|
||||||
ansible.builtin.raw:
|
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
|
become: yes
|
||||||
register: _config_backup
|
register: _config_backup
|
||||||
when: perform_upgrade | bool
|
when: perform_upgrade | bool
|
||||||
|
|||||||
Reference in New Issue
Block a user