From 1a247de0b6e547bb970b6369eff5d33ebf5c9e66 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 17 Nov 2016 13:20:46 -0500 Subject: [PATCH] remove rsync path from returned facts (cherry picked from commit 7c960d440f9d9db3d2aa01183f399e113237ed0b) --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 540fcf0b8b1..fcdc532b9fb 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -672,7 +672,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): data = json.loads(filtered_output) data['_ansible_parsed'] = True if 'ansible_facts' in data and isinstance(data['ansible_facts'], dict): - remove_keys = set() + remove_keys = set(['ansible_rsync_path']) fact_keys = set(data['ansible_facts'].keys()) # first we add all of our magic variable names to the set of # keys we want to remove from facts