Hello

I can see some examples of what I am trying to understand, but I'm still not quite clear, perhaps someone can help?

I am trying to lookup a list of network names to pass to the ovirt_host_network, networks parameter.

I have the networks in my hosts file like:

# Logical networks
net:
  hosts:
    v1234-test-vlan:
      net_vlan:      1234
      net_vms:    true

    v1235-another-test-vlan:
      net_vlan:      1235
      net_vms:    true

And now I would like to loop through those entries to pass as a list to the "networks:" parameter of overt_host_networks. Manually it looks like this:

      ovirt_host_network:
        auth:        "{{ ovirt_auth }}"
        state:       present
        name:        "{{ item }}"
        interface:   "bond0"
        networks:
          - name: v1234-test-vlan
          - name: v1235-another-test-vlan
        wait:        true
      loop:          "{{ groups['kvm'] }}"
      

Thanks for any help!
Angus