mirror of https://github.com/ansible/ansible.git
Remove provider (and transport, where applicable) from consideration when not using connection=local (#39555) (#39861)
* Remove provider (and transport, where applicable) from consideration
* Add tests that misplaced transport does not fail task
(cherry picked from commit c6270e15a6
)
pull/39871/head
parent
fb5bc5d513
commit
f654d47c01
@ -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…
Reference in New Issue