mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
5e827f4cc4
* added nxos_smoke tests * add connection information, check length of output * updated name of task
24 lines
595 B
YAML
24 lines
595 B
YAML
---
|
|
- debug: msg="START connection={{ ansible_connection }} common/misc_tests.yaml"
|
|
- debug: msg="Using provider={{ connection.transport }}"
|
|
when: ansible_connection == "local"
|
|
|
|
- name: hit conditional for lists of 10 or more commands
|
|
nxos_command:
|
|
commands:
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
- show hostname
|
|
provider: "{{ connection }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- result.stdout|length == 10
|