abb0f4498f
* Fixes to improve ios_system idempotency (#38303) Added detection of additional formatting for domain_name, domain_search, lookup_source, and lookup_enabled on some software versions. In each case they failed to detect existing commands with a '-' in it. Fix: #38301 (cherry picked from commit67acffb5f2
) * Nxos fixes (#40117) * Alter nxos_nxapi tests to test the right thing * Defend #40027 (cherry picked from commitf04c876ecd
)
30 lines
739 B
YAML
30 lines
739 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
|
|
|
|
- name: combine with provider
|
|
nxos_command:
|
|
commands:
|
|
- show hostname
|
|
provider: "{{ connection | combine({'timeout': 500}) }}"
|