Add a way to restrict gathered facts in Ansible:

- Using gather_subset options
- By ignoring ohai/chef or facter/puppet facts
This commit is contained in:
Yannig Perré
2016-03-12 10:22:49 +01:00
committed by Toshio Kuratomi
parent 2984ffdfac
commit 88772b6003
8 changed files with 133 additions and 9 deletions

View File

@@ -31,6 +31,21 @@
# explicit - do not gather by default, must say gather_facts: True
#gathering = implicit
# by default retrieve all facts subsets
# all - gather all subsets
# min - gather a very limited set of facts
# network - gather min and network facts
# hardware - gather hardware facts (longest facts to retrieve)
# virtual - gather min and virtual facts
# You can combine them using comma (ex: min,network,virtual)
#gather_subset = all
# by default run ohai
#ignore_ohai = False
# by default run facter
#ignore_facter = False
# additional paths to search for roles in, colon separated
#roles_path = /etc/ansible/roles