On Friday, 27 March 2015 23:18:15 UTC+1, Brian Coca wrote:
Hi Brian,
with_items:
> - p1
> - p2
> - "{{ condition|ternary(p3,'') }}"
>
This yields an empty list item, and the yum module doesn't like it.
> or
>
> with_items: "{{ ['p1','p2'] |union(condition|ternary(['p3'],[ ])) }}"
Using ansible 1.9.0.1, this fails with:
fatal: [10.0.0.63] => an unexpected type error occurred. Error was can only
concatenate list (not "bool") to list
--
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/7ba0caa0-c450-4151-bfb7-42dc1396d7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.