From b58e16ed3d8ebe5a8d2aee9b72068ae82b003fbc Mon Sep 17 00:00:00 2001 From: Ton Kersten Date: Fri, 19 Feb 2016 10:38:23 +0100 Subject: [PATCH] Fix facter path In Puppet 4 and in the PE edition, the Puppet tree is installed in `/opt/puppetlabs/...` and all commands can be reached from `/opt/puppetlabs/bin`. --- lib/ansible/modules/system/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/setup.py b/lib/ansible/modules/system/setup.py index a28c037c745..c3f19eda170 100644 --- a/lib/ansible/modules/system/setup.py +++ b/lib/ansible/modules/system/setup.py @@ -87,7 +87,7 @@ def run_setup(module): # Look for the path to the facter and ohai binary and set # the variable to that path. - facter_path = module.get_bin_path('facter') + facter_path = module.get_bin_path('facter', opt_dirs=['/opt/puppetlabs/bin']) ohai_path = module.get_bin_path('ohai') # if facter is installed, and we can use --json because