Pause for 5 seconds
This commit is contained in:
@@ -4,14 +4,22 @@
|
|||||||
become: yes
|
become: yes
|
||||||
connection: network_cli
|
connection: network_cli
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
vars:
|
||||||
|
switch_port: Gigabit2/0/13
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Shut down port
|
- name: Shut down port
|
||||||
ios_interface:
|
ios_interface:
|
||||||
name: Gigabit2/0/13
|
name: "{{ switch_port }}"
|
||||||
enabled: False
|
enabled: False
|
||||||
|
state: down
|
||||||
|
|
||||||
- name: Bring up port
|
- name: Pause for 5 seconds
|
||||||
ios_interface:
|
pause:
|
||||||
name: Gigabit2/0/13
|
seconds: 5
|
||||||
enabled: True
|
|
||||||
|
- name: Bring up port
|
||||||
|
ios_interface:
|
||||||
|
name: "{{ switch_port }}"
|
||||||
|
enabled: True
|
||||||
|
state: up
|
||||||
|
|||||||
Reference in New Issue
Block a user