I pushed a set of fixes that allow some things like:
- include: path.yml a={{ foo }} b={{ bar }}
where as before, the spacing would confuse Ansible
I also made several fixes that allow things like:
with_nested:
-
list_var
-
other_list_var
with_items: alist_var
environment: dictionary_var
tasks:
- action: debug
args: dictionary_var
Just being able to pass the names of variables in here, just like you could already do with_items, means you can keep things simple and don’t have to quote things.
Ugly:
with_items: “{{ foo }}”
Better:
with_items: foo
and so on.
Let me know if there are places you try this syntax and it does not work as you think it would, and we’ll go back and fix them in.
Thanks everyone for patience as we work on the 1.2 development version, I think this is a HUGE improvement of having to reference so many variables with dollar signs (or even {{ brackets }}) and it’s definitely worth the trouble getting there.
Much appreciated everyone for helping pound on this!