To get today's date, I'm using this variable in a Jinja template:
{{ now() | ansible.builtin.strftime('%d/%m/%Y') }}
However, it fails with an error
> ansible.errors.AnsibleFilterError: Invalid value for epoch value (%d/%m/%Y)
Why is that?
Asked by dr_
(32068 rep)
May 19, 2025, 02:35 PM
Last activity: May 22, 2025, 04:38 PM
Last activity: May 22, 2025, 04:38 PM