mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
avoid x2 setting of set_fact when 'cacheable' (#50564)
* avoid x2 setting of set_fact when 'cacheable' fixes #50556 * ammend docs to new behaviour * added period
This commit is contained in:
parent
c7f3829ad4
commit
207848f354
4 changed files with 7 additions and 6 deletions
|
@ -684,7 +684,7 @@ class TaskExecutor:
|
|||
return failed_when_result
|
||||
|
||||
if 'ansible_facts' in result:
|
||||
if self._task.action in ('set_fact', 'include_vars'):
|
||||
if self._task.action in ('include_vars', 'set_fact'):
|
||||
vars_copy.update(result['ansible_facts'])
|
||||
else:
|
||||
# TODO: cleaning of facts should eventually become part of taskresults instead of vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue