summaryrefslogtreecommitdiff
path: root/inventory/group_vars/dellos6/main.yml
blob: 7bf53699597d471d906cd860436f4f40be1c25b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
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 %}