2 {% for nprof in network_profiles %}
3 {% if nprof in hosts[ansible_hostname].network_profiles %}
4 {% if network_profiles[nprof].sriov_provider_networks is defined %}
5 {% for pool in network_profiles[nprof].sriov_provider_networks %}
6 {% for iface in network_profiles[nprof].sriov_provider_networks[pool].interfaces %}
7 - resourceName: "sriov_{{ iface }}"
9 pfNames: [ "{{ iface }}" ]
10 rootDevices: [ "{{ ifacepcimap[iface] }}" ]