ansible/test/integration/targets/nxos_reboot/tests/common/sanity.yaml
Mike Wiebe 0e4a7b0889 Fix nxos_reload timeout and add integration tests (#49632)
* Fix timeout and add tests

* Correct module name
2018-12-12 10:32:27 -05:00

26 lines
673 B
YAML

---
- debug: msg="START connection={{ ansible_connection }} nxos_reboot sanity test"
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- debug: msg="***WARNING*** Remove meta end_play to verify this module ***WARNING***"
- meta: end_play
- block:
- name: Reboot Switch
nxos_reboot:
confirm: True
provider: "{{ connection }}"
ignore_errors: yes
always:
- name: Wait for device to come back up
wait_for:
port: 22
state: started
timeout: 600
delay: 60
host: "{{ inventory_hostname }}"
- debug: msg="END connection={{ ansible_connection }} nxos_reboot sanity test"