Fix result

This commit is contained in:
SebClem 2024-09-17 15:46:42 +02:00
parent a7966f0a41
commit eac675ea75
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -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