* config, moved 'choices' from wall of text, to keys
* updated to ensure all pythons handle the 2 modes correctly
* Update lib/ansible/config/base.yml
Co-authored-by: Sandra McCann <samccann@redhat.com>
- This setting controls the default policy of fact gathering (facts discovered about remote systems).
- "When 'implicit' (the default), the cache plugin will be ignored and facts will be gathered per play unless 'gather_facts: False' is set."
- "When 'explicit' the inverse is true, facts will not be gathered unless directly requested in the play."
- "The 'smart' value means each new host that has no facts discovered will be scanned,
but if the same host is addressed in multiple plays it will not be contacted again in the playbook run."
- "This option can be useful for those wishing to save fact gathering time. Both 'smart' and 'explicit' will use the cache plugin."
env:[{name:ANSIBLE_GATHERING}]
ini:
- key:gathering
section:defaults
version_added:"1.6"
choices:['smart','explicit','implicit']
choices:
implicit:"the cache plugin will be ignored and facts will be gathered per play unless 'gather_facts: False' is set."
explicit:facts will not be gathered unless directly requested in the play.
smart:each new host that has no facts discovered will be scanned, but if the same host is addressed in multiple plays it will not be contacted again in the run.
DEFAULT_GATHER_SUBSET:
name:Gather facts subset
description:
@ -1285,7 +1285,10 @@ DUPLICATE_YAML_DICT_KEY:
ini:
- {key: duplicate_dict_key, section:defaults}
type:string
choices:['warn','error','ignore']
choices:&basic_error2
error:issue a 'fatal' error and stop the play
warn:issue a warning but continue
ignore:just continue silently
version_added:"2.9"
ERROR_ON_MISSING_HANDLER:
name:Missing handler error
@ -1454,7 +1457,8 @@ HOST_PATTERN_MISMATCH:
env:[{name:ANSIBLE_HOST_PATTERN_MISMATCH}]
ini:
- {key: host_pattern_mismatch, section:inventory}
choices:['warning','error','ignore']
choices:
<<:*basic_error
version_added:"2.8"
INTERPRETER_PYTHON:
name:Python interpreter path (or automatic discovery behavior) used for module execution