On 13.05.16 21:35 Alejandro Comisario wrote: > with_items: > > - groups['haproxy'] > > - hostvars.groups.haproxy['ansible_fqdn']
I think I read that joining two lists (thats what they are) is done using a plus sign: with_items: groups['haproxy'] + groups['foobar'] In your case you do not have a second list foobar, you want to iterate over the first list but get another item, not the name that is in the inventory (ansible_hostname) but something else. I do not know if that is possible. Johannes -- 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/57363163.8070504%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
