I've got a particularly vexing bug wrt the date / time helpers. Running the following:
- debug: "var=ansible_date_time['year']"
Does not give me the current year, the variable remains uninterpolated. I've tried various permutations of quoting, to no avail. The debug output suspiciously drops a leading [, making me think there's a bug in the ansible internals when parsing this. Here's the debug output:
_________________________________________________________
< TASK: tower-backup | debug var=ansible_date_time'year'] >
---------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
"ansible_date_time[year]": "{{ ansible_date_time[year] }}",
"item": ""
}