-
Notifications
You must be signed in to change notification settings - Fork 13
/
configure_l2_interfaces.yml
42 lines (37 loc) · 1.06 KB
/
configure_l2_interfaces.yml
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
38
39
40
41
42
- hosts: all
collections:
- arubanetworks.aoscx
vars:
ansible_python_interpreter: /usr/bin/python3
gather_facts: False
tasks:
- name: Create VLAN 300
aoscx_vlan:
vlan_id: 300
name: Building-3
- name: Create VLAN 400
aoscx_vlan:
vlan_id: 400
description: Building-4
- name: Configure Interface 1/1/3 - vlan trunk allowed 300,400 , vlan trunk native 300
aoscx_l2_interface:
interface: 1/1/3
vlan_mode: trunk
vlan_trunks: ['400','300']
native_vlan_id: '300'
- name: Configure Interface 1/1/4 - vlan access 300
aoscx_l2_interface:
interface: 1/1/4
vlan_mode: access
vlan_access: '300'
- name: Configure Interface 1/1/5 - vlan trunk allowed all, vlan trunk native 400 tag
aoscx_l2_interface:
interface: 1/1/5
vlan_mode: trunk
trunk_allowed_all: True
native_vlan_id: '400'
native_vlan_tag: True
- name: Disable Interface 1/1/6
aoscx_interface:
name: 1/1/6
enabled: true