mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
now properly uses default port if defined
This commit is contained in:
parent
496186f5de
commit
f16b745f17
3 changed files with 6 additions and 3 deletions
|
@ -298,6 +298,10 @@ class PlayContext(Base):
|
|||
if variable_name in variables:
|
||||
setattr(new_info, attr, variables[variable_name])
|
||||
|
||||
# make sure we get port defaults if needed
|
||||
if newinfo.port is None and C.DEFAULT_REMOTE_PORT is not None:
|
||||
newinfo.port = int(C.DEFAULT_REMOTE_PORT)
|
||||
|
||||
# become legacy updates
|
||||
if not new_info.become_pass:
|
||||
if new_info.become_method == 'sudo' and new_info.sudo_pass:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue