From f00d47fac03754d6729ca5fd6738e5bfe66a510c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 3 Oct 2017 14:54:25 -0400 Subject: [PATCH] dont follow symlinks for inventories now symlink dir is checked for locality of group/host_vars fixes #31195 --- lib/ansible/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index e4563e06d3..ae3008b459 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -615,7 +615,7 @@ class CLI(with_metaclass(ABCMeta, object)): self.options.inventory = [self.options.inventory] # Ensure full paths when needed - self.options.inventory = [unfrackpath(opt) if ',' not in opt else opt for opt in self.options.inventory] + self.options.inventory = [unfrackpath(opt, follow=False) if ',' not in opt else opt for opt in self.options.inventory] else: self.options.inventory = C.DEFAULT_HOST_LIST