2016-10-28 20:50:29 +02:00
|
|
|
---
|
2017-12-19 21:49:49 +01:00
|
|
|
- debug: msg="START cli/contains.yaml on connection={{ ansible_connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
|
|
|
|
- name: test contains operator
|
|
|
|
eos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
2018-05-18 00:47:15 +02:00
|
|
|
- show interfaces Management1 | json
|
2016-10-28 20:50:29 +02:00
|
|
|
wait_for:
|
|
|
|
- "result[0] contains EOS"
|
|
|
|
- "result[1].interfaces.Management1.name contains Manage"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.stdout is defined"
|
|
|
|
|
2017-12-19 21:49:49 +01:00
|
|
|
- debug: msg="END cli/contains.yaml on connection={{ ansible_connection }}"
|