On Tue, 26 May 2020 16:47:22 -0700 (PDT)
ChrisV <ch...@cracklecode.com> wrote:

> `network_interfaces` is a list. You will need to include the index of the 
> interface, which is 0 in your example.
> 
>  Ex. "{{ ec2_facts.instances.network_interfaces[0] }}"

The loop below would work in this case.

> > - name: setting fact for subnet ID
> >    set_fact: SUBNETID="{{ item.subnet_id }}"
> >    with_items: "{{ ec2_facts.instances.network_interfaces }}" 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200527015216.5e5a76fd%40gmail.com.

Attachment: pgp7RW4FrSAWj.pgp
Description: OpenPGP digital signature

Reply via email to