From f9b85306f0df8e1f049582af1de382555dee1510 Mon Sep 17 00:00:00 2001 From: Simon Aquino Date: Tue, 21 Oct 2014 23:47:03 +0100 Subject: [PATCH] Facter module should return custom facts The ansible facter module should also return puppet custom facts by default. --- lib/ansible/modules/extras/system/facter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/facter.py b/lib/ansible/modules/extras/system/facter.py index a72cdc6536f..a4912835447 100644 --- a/lib/ansible/modules/extras/system/facter.py +++ b/lib/ansible/modules/extras/system/facter.py @@ -45,7 +45,7 @@ def main(): argument_spec = dict() ) - cmd = ["/usr/bin/env", "facter", "--json"] + cmd = ["/usr/bin/env", "facter", "--puppet", "--json"] rc, out, err = module.run_command(cmd, check_rc=True) module.exit_json(**json.loads(out))