From 97931cbdf8a62e5e219e780d59aad7b9ac0f7b9a Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Tue, 17 Sep 2019 23:50:57 -0400 Subject: [PATCH] Reset Switch Port --- reset_port.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 reset_port.yml diff --git a/reset_port.yml b/reset_port.yml new file mode 100644 index 0000000..ece9039 --- /dev/null +++ b/reset_port.yml @@ -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