mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #1125 from dagwieers/setup-retain
Make sure we retain facts between playbooks
This commit is contained in:
@@ -317,7 +317,7 @@ class PlayBook(object):
|
|||||||
# let runner template out future commands
|
# let runner template out future commands
|
||||||
setup_ok = setup_results.get('contacted', {})
|
setup_ok = setup_results.get('contacted', {})
|
||||||
for (host, result) in setup_ok.iteritems():
|
for (host, result) in setup_ok.iteritems():
|
||||||
self.SETUP_CACHE[host] = result.get('ansible_facts', {})
|
self.SETUP_CACHE[host].update(result.get('ansible_facts', {}))
|
||||||
return setup_results
|
return setup_results
|
||||||
|
|
||||||
# *****************************************************
|
# *****************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user