mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Cleaning up some portions of synchronize action plugin (v2)
This commit is contained in:
parent
8db21f99b7
commit
198476e345
1 changed files with 1 additions and 4 deletions
|
@ -96,10 +96,7 @@ class ActionModule(ActionBase):
|
|||
dest_is_local = dest_host in ['127.0.0.1', 'localhost']
|
||||
|
||||
# CHECK FOR NON-DEFAULT SSH PORT
|
||||
dest_port = self._task.args.get('dest_port')
|
||||
inv_port = task_vars.get('ansible_ssh_port') or task_vars.get('inventory_hostname')
|
||||
if inv_port != dest_port and inv_port != task_vars.get('inventory_hostname'):
|
||||
dest_port = inv_port
|
||||
dest_port = task_vars.get('ansible_ssh_port') or self._task.args.get('dest_port') or 22
|
||||
|
||||
# edge case: explicit delegate and dest_host are the same
|
||||
if dest_host == task_vars.get('delegate_to'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue