Reset Switch Port
This commit is contained in:
16
reset_port.yml
Normal file
16
reset_port.yml
Normal 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
|
||||
Reference in New Issue
Block a user