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