From de6ba4daff48e23bb2bee31cd075e0f6f4c8eb56 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 28 Aug 2017 17:17:19 -0400 Subject: add toggle to controle inventory parse as error (#28729) * add toggle to controle inventory parse as error also rearranged new inventory options into it's own ini section * updated with inventory features also minor fixes/consolidation on deprecated/removed modules * tweaked settings --- examples/ansible.cfg | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/ansible.cfg b/examples/ansible.cfg index 7abae073f2..fa73d4a514 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -72,9 +72,6 @@ # enable callback plugins, they can output to stdout but cannot be 'stdout' type. #callback_whitelist = timer, mail -# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini' -#inventory_enabled = host_list, virtualbox, yaml, constructed - # Determine whether includes in tasks and handlers are "static" by # default. As of 2.0, includes are dynamic by default. Setting these # values to True will make includes behave more like they did in the @@ -313,6 +310,19 @@ # set default errors for all plays #any_errors_fatal = False +[inventory] +# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini' +#enabled_plugins = host_list, virtualbox, yaml, constructed + +# ignore these extensions when parsing a directory as inventory source +#ignore_extensions = '.pyc', '.pyo', '.swp', '.bak', '~', '.rpm', '.md', '.txt', '~', '.orig', '.ini', '.cfg', '.retry' + +# ignore files matching these patterns when parsing a directory as inventory source +#ignore_patterns= + +# If 'true' unparsed inventory sources become fatal errors, they are warnings otherwise. +#unparsed_is_failed=False + [privilege_escalation] #become=True #become_method=sudo -- cgit v1.2.1