mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix facter path
This commit is contained in:
parent
383403282f
commit
fb471fc0a8
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ def main():
|
|||
argument_spec = dict()
|
||||
)
|
||||
|
||||
cmd = ["/usr/bin/env", "facter", "--puppet", "--json"]
|
||||
facter_path = module.get_bin_path('facter', opt_dirs=['/opt/puppetlabs/bin'])
|
||||
|
||||
cmd = [facter_path, "--puppet", "--json"]
|
||||
|
||||
rc, out, err = module.run_command(cmd, check_rc=True)
|
||||
module.exit_json(**json.loads(out))
|
||||
|
||||
|
|
Loading…
Reference in a new issue