Subject: [ansible-project] iterating over IPv4/IPv6 (parallel) + TCP ports (nested)


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')))}}"

On Thu, Feb 11, 2016 at 7:12 PM, nusenu <[EMAIL PROTECTED]> wrote:

--
----------
Brian Coca

--
To post to this group, send email to [EMAIL PROTECTED].