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