mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
use actual ssh executable as it might not be ssh
This commit is contained in:
@@ -677,7 +677,7 @@ class Connection(ConnectionBase):
|
||||
# only when using ssh. Otherwise we can send initial data straightaway.
|
||||
|
||||
state = states.index('ready_to_send')
|
||||
if b'ssh' in cmd and sudoable:
|
||||
if to_bytes(self.get_option('ssh_executable')) in cmd and sudoable:
|
||||
if self._play_context.prompt:
|
||||
# We're requesting escalation with a password, so we have to
|
||||
# wait for a password prompt.
|
||||
|
||||
Reference in New Issue
Block a user