Add target var
This commit is contained in:
parent
06c4d10ca2
commit
bcbf423a4a
@ -91,7 +91,10 @@ class ActionModule(ActionBase):
|
||||
scope['caddy_config'] = results
|
||||
results = scope
|
||||
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
|
||||
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user