mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
@@ -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'"
|
||||
Reference in New Issue
Block a user