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