On 26.05.2018 20:47, Kai Stian Olstad wrote:
Why split them up, why not just use facts_output directly.

  - name: execute to add the ips
    command: “exec item.public_ip_address item.tags.Name”
    run_once: true
    with_items:
      - “{{ facts_output.instances }}”

A little correction

  - name: execute to add the ips
    command: “exec {{ item.public_ip_address }} {{ item.tags.Name }}”
    run_once: true
    with_items:
      - “{{ facts_output.instances }}”



--
Kai Stian Olstad

--
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/7b574fa7ff8db47d208c7609575529a4%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to