mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
make executable setting connection dependant
winrm shoudl not use executable, rest should? fixes #14233
This commit is contained in:
parent
0e551e6d46
commit
197bed6fd8
3 changed files with 3 additions and 1 deletions
|
@ -505,7 +505,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
replacement strategy (python3 could use surrogateescape)
|
||||
'''
|
||||
|
||||
if executable is not None:
|
||||
if executable is not None and self._connection.allow_executable:
|
||||
cmd = executable + ' -c ' + pipes.quote(cmd)
|
||||
|
||||
display.debug("_low_level_execute_command(): starting")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue