From 38c2c6084909f8fbdcca9f0d0787f227ea74e792 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 12 May 2014 12:02:38 -0500 Subject: [PATCH] Do not base synchronize source on the inventory directory Fixes #7366 --- lib/ansible/runner/action_plugins/synchronize.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/ansible/runner/action_plugins/synchronize.py b/lib/ansible/runner/action_plugins/synchronize.py index 972926852a5..8a8555a204c 100644 --- a/lib/ansible/runner/action_plugins/synchronize.py +++ b/lib/ansible/runner/action_plugins/synchronize.py @@ -38,10 +38,6 @@ class ActionModule(object): # make sure the dwim'd path ends in a trailing "/" # if the original path did path += '/' - elif 'inventory_dir' in self.inject['vars']: - # non-roles - abs_dir = os.path.abspath(self.inject['vars']['inventory_dir']) - path = os.path.join(abs_dir, path) return path