mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Store the ${last_result} for each host to make it usable in only_if conditionals and such.
This commit is contained in:
@@ -224,6 +224,7 @@ class PlayBook(object):
|
||||
for host, result in results['contacted'].iteritems():
|
||||
facts = result.get('ansible_facts', {})
|
||||
self.SETUP_CACHE[host].update(facts)
|
||||
self.SETUP_CACHE[host]['last_result'] = result
|
||||
|
||||
# flag which notify handlers need to be run
|
||||
if len(task.notify) > 0:
|
||||
|
||||
Reference in New Issue
Block a user