From 2b6d8a8be53dcd7e8f19579f6dc538c4062b3346 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 20 Jul 2012 11:58:08 -0400 Subject: [PATCH] Fix some issues with the setup cache --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 66405ca0218..07bae908798 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -262,7 +262,7 @@ class Runner(object): ''' allows discovered variables to be used in templates and action statements ''' host = conn.host - self.setup_cache[host] = result.get('ansible_facts', {}) + self.setup_cache[host].update(result.get('ansible_facts', {})) # *****************************************************