|
|
|
@ -184,11 +184,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, connection) = args_parser.parse()
|
|
|
|
|
(action, args, delegate_to) = args_parser.parse()
|
|
|
|
|
|
|
|
|
|
new_ds['action'] = action
|
|
|
|
|
new_ds['args'] = args
|
|
|
|
|
new_ds['connection'] = connection
|
|
|
|
|
new_ds['delegate_to'] = delegate_to
|
|
|
|
|
|
|
|
|
|
# we handle any 'vars' specified in the ds here, as we may
|
|
|
|
|
# be adding things to them below (special handling for includes).
|
|
|
|
@ -200,8 +200,8 @@ class Task(Base, Conditional, Taggable, Become):
|
|
|
|
|
else:
|
|
|
|
|
new_ds['vars'] = dict()
|
|
|
|
|
|
|
|
|
|
for (k,v) in iteritems(ds):
|
|
|
|
|
if k in ('action', 'local_action', 'args', 'connection') or k == action or k == 'shell':
|
|
|
|
|
for (k,v) in ds.iteritems():
|
|
|
|
|
if k in ('action', 'local_action', 'args', 'delegate_to') or k == action or k == 'shell':
|
|
|
|
|
# we don't want to re-assign these values, which were
|
|
|
|
|
# determined by the ModuleArgsParser() above
|
|
|
|
|
continue
|
|
|
|
|