mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
use configured ansible_shell_executable
refine args/shell/executable hanlding
This commit is contained in:
parent
48f4643a66
commit
f2ade09dce
2 changed files with 29 additions and 22 deletions
|
@ -607,6 +607,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
# give the module the socket for persistent connections
|
||||
module_args['_ansible_socket'] = task_vars.get('ansible_socket')
|
||||
|
||||
# make sure all commands use the designated shell executable
|
||||
module_args['_ansible_shell_executable'] = self._play_context.executable
|
||||
|
||||
def _execute_module(self, module_name=None, module_args=None, tmp=None, task_vars=None, persist_files=False, delete_remote_tmp=True, wrap_async=False):
|
||||
'''
|
||||
Transfer and run a module along with its arguments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue