Allow modules to return facts.

If the module result contains "ansible_facts", that will be added to the setup
cache.
This commit is contained in:
Jeroen Hoekx
2012-04-23 20:06:14 +02:00
parent ec56b30248
commit 2dc9a563ef
6 changed files with 30 additions and 13 deletions

View File

@@ -22,4 +22,6 @@
# facter
# ruby-json
echo '{ "ansible_facts":'
/usr/bin/facter --json
echo '}'