mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Revert "set_fact should put facts in the fact_cache, not vars_cache"
This reverts commit 926f127245.
This commit is contained in:
@@ -158,7 +158,7 @@ class ResultProcess(multiprocessing.Process):
|
||||
elif 'ansible_facts' in result_item:
|
||||
# if this task is registering facts, do that now
|
||||
item = result_item.get('item', None)
|
||||
if result._task.action == 'include_vars':
|
||||
if result._task.action in ('set_fact', 'include_vars'):
|
||||
for (key, value) in iteritems(result_item['ansible_facts']):
|
||||
self._send_result(('set_host_var', result._host, result._task, item, key, value))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user