2016-10-28 18:50:29 +00:00
|
|
|
---
|
2018-05-17 22:47:15 +00:00
|
|
|
- debug: msg="START common/output.yaml on connection={{ ansible_connection }}"
|
2016-10-28 18:50:29 +00:00
|
|
|
|
|
|
|
- name: get output for single command
|
|
|
|
nxos_command:
|
|
|
|
commands: ['show version']
|
2018-07-02 13:43:51 +00:00
|
|
|
provider: "{{ connection }}"
|
2016-10-28 18:50:29 +00:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
|
|
|
|
- name: get output for multiple commands
|
|
|
|
nxos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
|
|
|
- show interface
|
2018-07-02 13:43:51 +00:00
|
|
|
provider: "{{ connection }}"
|
2016-10-28 18:50:29 +00:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
|
2018-05-17 22:47:15 +00:00
|
|
|
- debug: msg="END common/output.yaml on connection={{ ansible_connection }}"
|