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
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/LL4NY63DGM5Y3SQFLIUEZNBTZ3MOTZJ7/