2016-10-28 20:50:29 +02:00
|
|
|
---
|
2018-01-05 23:01:45 +01:00
|
|
|
- debug: msg="START connection={{ ansible_connection }}/negative.yaml"
|
|
|
|
- debug: msg="Using provider={{ connection.transport }}"
|
|
|
|
when: ansible_connection == "local"
|
2016-10-28 20:50:29 +02:00
|
|
|
|
|
|
|
- name: run 11 commands
|
|
|
|
nxos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
|
|
|
- show version
|
2017-08-21 17:15:25 +02:00
|
|
|
provier: "{{ connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
ignore_errors: yes
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- result.failed
|
|
|
|
|
|
|
|
|
2018-01-05 23:01:45 +01:00
|
|
|
- debug: msg="END connection={{ ansible_connection }}/negative.yaml"
|