mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 12:51:25 -07:00
remove fix for local_action/connection local that is now not needed
This commit is contained in:
parent
17c75df0ae
commit
d24532757c
1 changed files with 0 additions and 5 deletions
|
@ -362,11 +362,6 @@ class PlayContext(Base):
|
||||||
setattr(new_info, 'connection', 'local')
|
setattr(new_info, 'connection', 'local')
|
||||||
elif getattr(new_info, 'connection', None) == 'local' and new_info.remote_addr not in C.LOCALHOST:
|
elif getattr(new_info, 'connection', None) == 'local' and new_info.remote_addr not in C.LOCALHOST:
|
||||||
setattr(new_info, 'connection', C.DEFAULT_TRANSPORT)
|
setattr(new_info, 'connection', C.DEFAULT_TRANSPORT)
|
||||||
elif task._local_action:
|
|
||||||
# otherwise, in the special instance that the task was specified
|
|
||||||
# as a local action, override the connection in case it was changed
|
|
||||||
# during some other step in the process
|
|
||||||
setattr(new_info, 'connection', 'local')
|
|
||||||
|
|
||||||
# set no_log to default if it was not previouslly set
|
# set no_log to default if it was not previouslly set
|
||||||
if new_info.no_log is None:
|
if new_info.no_log is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue