---
- hosts: sw
connection: network_cli
tasks:
-
name: creating vlan
ios_vlan:
authorize: yes
provider:
username: cisco
password:
cisco123
host:
172.22.110.201
vlan_id: 20
name: testvlan1
state: present