ansible/test/integration/targets/ios_smoke/tests/cli/reboot.yaml
Nathaniel Case e19b94f43b
Add test for reboot & wait_for_connection on EOS & IOS (#63014)
* Add test for reboot & wait_for_connection

* Add test for ios

* Collection-proof block test

* Add junos test

* Don't try to evaluate cli context unless using the connection

* Prevent infinite recursion
2020-01-07 14:24:26 -05:00

19 lines
324 B
YAML

---
- block:
- cli_command:
command: reload
prompt:
- "yes/no"
- "confirm"
answer:
- "no"
- "y"
check_all: yes
- wait_for_connection:
delay: 20
sleep: 10
- cli_command:
command: show version
when: ansible_connection.endswith("network_cli")