diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 78feace55f3..66bcd8b75d2 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -688,7 +688,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): data = json.loads(self._filter_non_json_lines(res.get('stdout', u''))) 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