mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Store the ${last_result} for each host to make it usable in only_if conditionals and such.
This commit is contained in:
parent
58e099b91b
commit
6c5761a79e
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue