Fix result
This commit is contained in:
parent
a7966f0a41
commit
eac675ea75
@ -52,8 +52,7 @@ class ActionModule(ActionBase):
|
||||
self.depth = module_args.get('depth', 0)
|
||||
|
||||
results = {
|
||||
"sites": [],
|
||||
|
||||
"sites": []
|
||||
}
|
||||
failed = False
|
||||
|
||||
@ -89,7 +88,9 @@ class ActionModule(ActionBase):
|
||||
if not "target_var" in module_args:
|
||||
result['ansible_facts'] = results
|
||||
else:
|
||||
result['ansible_facts'][module_args['target_var']] = results
|
||||
result['ansible_facts'] = {
|
||||
module_args['target_var']: results
|
||||
}
|
||||
result['_ansible_no_log'] = not self.show_content
|
||||
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user