Store the ${last_result} for each host to make it usable in only_if conditionals and such.

This commit is contained in:
Michael DeHaan 2012-08-10 00:58:53 -04:00
commit 6c5761a79e
2 changed files with 2 additions and 0 deletions

View file

@ -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: