Hello,

Supposing I retrive information about interfaces like  this:

 - name: Get network interface details newly created hosts
    azure_rm_networkinterface_facts:
      resource_group: "{{ rg_name }}"
      name: "{{ item }}01"
    register: azure_networkinterfaces
    loop:
      -  "{{ env }}-sw1-vm"
      -  "{{ env }}-sw2-vm"
      -  "{{ env }}-sw3-vm"


how can I get their private IP's in a loop?

i.e. I want then add them to dns zone looping through something like: 

    loop:
      - sw1
      - sw2
      - sw3

or something like that, and in the zone there should be 
     sw1 in a 10.0.0.4 
     sw2 in a 10.0.0.5
     sw3 in a 10.0.0.6



so i only need the idea of how to loop through such an object

thank you. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1b2fab86-f061-400d-a9a5-080c4fba085f%40googlegroups.com.

Reply via email to