2017-02-26 14:12:57 +01:00
|
|
|
---
|
2018-01-05 23:01:45 +01:00
|
|
|
- debug: msg="START connection={{ ansible_connection }}/invalid.yaml"
|
|
|
|
- debug: msg="Using provider={{ connection.transport }}"
|
|
|
|
when: ansible_connection == "local"
|
2017-02-26 14:12:57 +01:00
|
|
|
|
|
|
|
- name: configure invalid feature name
|
|
|
|
nxos_feature:
|
|
|
|
feature: invalid
|
2017-08-17 10:17:14 +02:00
|
|
|
provider: "{{ connection }}"
|
2017-02-26 14:12:57 +01:00
|
|
|
register: result
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- result.failed == true
|
|
|
|
|
2018-01-05 23:01:45 +01:00
|
|
|
- debug: msg="END connection={{ ansible_connection }}/invalid.yaml"
|