2019-08-19 11:24:36 -04:00
|
|
|
---
|
|
|
|
- name: Remove all vlans
|
2020-02-06 10:20:08 -05:00
|
|
|
cli_config:
|
|
|
|
config: no vlan 1-4094
|
2019-08-19 11:24:36 -04:00
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: Completely remove vlans from interfaces
|
2020-02-06 10:20:08 -05:00
|
|
|
cli_config:
|
|
|
|
config: |
|
2019-08-19 11:24:36 -04:00
|
|
|
interface {{ item }}
|
|
|
|
no switchport mode
|
|
|
|
no switchport access vlan
|
2020-02-26 23:49:00 +05:30
|
|
|
no switchport trunk native vlan
|
2019-08-19 11:24:36 -04:00
|
|
|
with_items:
|
|
|
|
- Ethernet1
|
|
|
|
- Ethernet2
|
|
|
|
become: yes
|