mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
changed local_action to alias to connection=local vs delegate_to=localhost
fixes #11998, but still leaves issue of delegate_to: localhost not working
This commit is contained in:
parent
5eeeb87d82
commit
7a4a156d91
2 changed files with 8 additions and 9 deletions
|
@ -157,11 +157,11 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
# and the delegate_to value from the various possible forms
|
||||
# supported as legacy
|
||||
args_parser = ModuleArgsParser(task_ds=ds)
|
||||
(action, args, delegate_to) = args_parser.parse()
|
||||
(action, args, connection) = args_parser.parse()
|
||||
|
||||
new_ds['action'] = action
|
||||
new_ds['args'] = args
|
||||
new_ds['delegate_to'] = delegate_to
|
||||
new_ds['connection'] = connection
|
||||
|
||||
# we handle any 'vars' specified in the ds here, as we may
|
||||
# be adding things to them below (special handling for includes).
|
||||
|
@ -174,7 +174,7 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
new_ds['vars'] = dict()
|
||||
|
||||
for (k,v) in ds.iteritems():
|
||||
if k in ('action', 'local_action', 'args', 'delegate_to') or k == action or k == 'shell':
|
||||
if k in ('action', 'local_action', 'args', 'connection') or k == action or k == 'shell':
|
||||
# we don't want to re-assign these values, which were
|
||||
# determined by the ModuleArgsParser() above
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue