mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Things that happen inside multiprocessing shouldn't make side effects, ergo append ansible_facts only
in playbook code. This technically means with_items calls can't continuously add facts I guess, but I can't see anyone ever trying that.
This commit is contained in:
@@ -248,8 +248,6 @@ class Runner(object):
|
||||
self.module_args += " #USE_SHELL"
|
||||
|
||||
exec_rc = self._execute_module(conn, tmp, module_name, self.module_args, inject=inject)
|
||||
if exec_rc.is_successful():
|
||||
self.setup_cache[conn.host].update(exec_rc.result.get('ansible_facts', {}))
|
||||
return exec_rc
|
||||
|
||||
# *****************************************************
|
||||
|
||||
Reference in New Issue
Block a user