mirror of https://github.com/ansible/ansible.git
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 taskpull/39862/head
parent
384a0d8b01
commit
c6270e15a6
@ -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