> with_items:
> - {{ ansible_all_ipv4_addresses }}
> - {{ ansible_all_ipv6_addresses | ipv6('public') }}
> - tcpports
>
>
> ^ will flatten to single list
>
> or you can use union to get unique single list:
>
> with_items: "{{
> tcpports|union(ansible_all_ipv4_addresses|union(ansible_all_ipv6_addresses
> | ipv6('public')))}}"This is not exactly what I wanted to achieve since it doesn't advance IPv4/6 in parallel while combining that combination with every port but the dirty workaround works and should do it. Thanks for your reply anyway. -- 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/56BE6E4E.6060203%40openmailbox.org. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
