I have a line like this, where "configs" variable is defined as a list of
dicts/hashes:
template: src={{ item.name }}.j2 dest="/etc/config/{{
item.target_name|item.name }}"
with_items: configs
It basically allows the generated filename to be customised, but fall back
to the template name if none is provided. The problem is it doesn't work,
the generated filename is literally {{ item.target_name|item.name }}. But
it works fine without the default syntax (ie just {{ item.name }}). Is that
expected behaviour and is there any workaround?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0f34c2d6-3376-4e09-9b88-6243ee9bdf0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.