2017-02-27 15:20:08 +01:00
|
|
|
- debug: msg="START CLI/BADTRANSPORT.YAML"
|
|
|
|
|
2018-05-15 07:25:14 +02:00
|
|
|
- block:
|
|
|
|
- name: Expect transport other than cli to fail
|
|
|
|
eos_eapi:
|
|
|
|
provider: "{{ eapi }}"
|
|
|
|
register: eos_eapi_output
|
|
|
|
ignore_errors: yes
|
2017-02-27 15:20:08 +01:00
|
|
|
|
2018-05-15 07:25:14 +02:00
|
|
|
- assert:
|
|
|
|
that: eos_eapi_output.failed == true
|
|
|
|
when: "ansible_connection == 'local'"
|
2017-02-27 15:20:08 +01:00
|
|
|
|
|
|
|
- debug: msg="START CLI/BADTRANSPORT.YAML"
|