blob: 0cb2bcda6ff2952876069fe3053163ad02715f11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
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 %}
dellos6_interfaces: "{{ dellos6_interfaces_yaml | from_yaml }}"
dellos6_interfaces_yaml: |
- spec: range Gi1/0/5-27
vlan: 28
- spec: Te1/0/1
description: "to sw1"
switchport_mode: trunk
# - spec: range Te1/0/3-4
# channel_group: 1
- spec: Po1
description: "fileserver"
switchport_mode: general
allowed_vlans:
- 28
- 32
- 30
|