mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Remove provider (and transport, where applicable) from consideration when not using connection=local (#39555)
* Remove provider (and transport, where applicable) from consideration * Add tests that misplaced transport does not fail task
This commit is contained in:
parent
384a0d8b01
commit
c6270e15a6
14 changed files with 48 additions and 2 deletions
|
@ -23,4 +23,15 @@
|
|||
provider: "{{ cli }}"
|
||||
become: no
|
||||
|
||||
# Test that transport values are properly ignored
|
||||
- name: wrong transport specified
|
||||
eos_command:
|
||||
commands: show version
|
||||
transport: eapi
|
||||
|
||||
- name: wrong transport specified in provider
|
||||
eos_command:
|
||||
commands: show version
|
||||
provider: "{{ eapi }}"
|
||||
|
||||
when: "ansible_connection != 'local'"
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- debug: msg="START cli/misc_tests.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
|
||||
- block:
|
||||
# Test that transport values are properly ignored
|
||||
- name: wrong transport specified
|
||||
eos_command:
|
||||
commands: show version
|
||||
transport: nxapi
|
||||
|
||||
- name: wrong transport specified in provider
|
||||
eos_command:
|
||||
commands: show version
|
||||
provider: "{{ nxapi }}"
|
||||
|
||||
when: "ansible_connection != 'local'"
|
Loading…
Add table
Add a link
Reference in a new issue