2016-10-28 20:50:29 +02:00
|
|
|
---
|
2018-05-18 00:47:15 +02:00
|
|
|
- debug: msg="START common/timeout.yaml on connection={{ ansible_connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
|
|
|
|
- name: test bad condition
|
|
|
|
nxos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
|
|
|
wait_for:
|
|
|
|
- "result[0] contains bad_value_string"
|
2018-07-02 15:43:51 +02:00
|
|
|
provider: "{{ connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
register: result
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.failed == true"
|
|
|
|
- "result.msg is defined"
|
|
|
|
|
2018-05-18 00:47:15 +02:00
|
|
|
- debug: msg="END common/timeout.yaml on connection={{ ansible_connection }}"
|