Reset Switch Port

This commit is contained in:
Patrick Toal
2019-09-17 23:50:57 -04:00
parent 6f6ad047ee
commit 97931cbdf8

16
reset_port.yml Normal file
View File

@@ -0,0 +1,16 @@
- name: Reset Port
hosts: switch01
become_method: enable
connection: network_cli
gather_facts: no
tasks:
- name: Shut down port
ios_interface:
name: Gigabit2/0/13
state: down
- name: Bring up port
ios_interface:
name: Gigabit2/0/13
state: up