mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix port overrides such that with fireball mode you don't have to specify an explicit port.
This commit is contained in:
parent
8fca862e17
commit
d5db8e937e
2 changed files with 4 additions and 2 deletions
|
@ -51,7 +51,7 @@ class PlayBook(object):
|
||||||
remote_user = C.DEFAULT_REMOTE_USER,
|
remote_user = C.DEFAULT_REMOTE_USER,
|
||||||
remote_pass = C.DEFAULT_REMOTE_PASS,
|
remote_pass = C.DEFAULT_REMOTE_PASS,
|
||||||
sudo_pass = C.DEFAULT_SUDO_PASS,
|
sudo_pass = C.DEFAULT_SUDO_PASS,
|
||||||
remote_port = C.DEFAULT_REMOTE_PORT,
|
remote_port = None,
|
||||||
transport = C.DEFAULT_TRANSPORT,
|
transport = C.DEFAULT_TRANSPORT,
|
||||||
private_key_file = C.DEFAULT_PRIVATE_KEY_FILE,
|
private_key_file = C.DEFAULT_PRIVATE_KEY_FILE,
|
||||||
callbacks = None,
|
callbacks = None,
|
||||||
|
|
|
@ -382,7 +382,9 @@ class Runner(object):
|
||||||
|
|
||||||
conn = None
|
conn = None
|
||||||
actual_host = inject.get('ansible_ssh_host', host)
|
actual_host = inject.get('ansible_ssh_host', host)
|
||||||
actual_port = inject.get('ansible_ssh_port', port)
|
actual_port = port
|
||||||
|
if self.transport in ['paramiko', 'ssh' ]:
|
||||||
|
actual_port = inject.get('ansible_ssh_port', port)
|
||||||
|
|
||||||
# the delegated host may have different SSH port configured, etc
|
# the delegated host may have different SSH port configured, etc
|
||||||
# and we need to transfer those, and only those, variables
|
# and we need to transfer those, and only those, variables
|
||||||
|
|
Loading…
Reference in a new issue