ansible/test/integration/targets/eos_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

20 lines
359 B
YAML

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