Add target var

This commit is contained in:
SebClem 2024-09-16 18:51:53 +02:00
parent 06c4d10ca2
commit bcbf423a4a
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -91,7 +91,10 @@ class ActionModule(ActionBase):
scope['caddy_config'] = results scope['caddy_config'] = results
results = scope results = scope
result['ansible_included_var_files'] = self.included_files result['ansible_included_var_files'] = self.included_files
result['ansible_facts'] = results if not "target_var" in module_args:
result['ansible_facts'] = results
else:
result['ansible_facts'][module_args['target_var']] = results
result['_ansible_no_log'] = not self.show_content result['_ansible_no_log'] = not self.show_content
return result return result