--- ansible_connection: network_cli ansible_network_os: dellos6 ansible_become: yes ansible_become_method: enable ansible_become_password: "{{ vault_ansible_become_password }}" dellos6_mgmt_vlan: "{{ switch_mgmt_zone.vlan }}" dellos6_mgmt_ipaddr: "{{ switch_mgmt_zone.prefix | ipaddr(switch_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}" dellos6_mgmt_netmask: "{{ switch_mgmt_zone.prefix | ipaddr('netmask') }}" dellos6_mgmt_interface: "{{ switch_mgmt_interface | default('') }}" dellos6_vlans: "{{ dellos6_vlans_yaml | from_yaml }}" dellos6_vlans_yaml: | {% for zone_name in switch_network_zones.keys() %} - name: "{{ zone_name }}" id: "{{ switch_network_zones[zone_name].vlan }}" {% endfor %}