mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
add 'localhost_warning' configuration option
Add the 'localhost_warning' configuration option. When set to 'false', this will prevent Ansible from issuing a warning when the inventory is empty and it is using an implicit inventory with only 'localhost'. Closes #17086
This commit is contained in:
committed by
Brian Coca
parent
0cb11c61ac
commit
ebe7666d71
@@ -321,6 +321,18 @@ COMMAND_WARNINGS:
|
||||
- {key: command_warnings, section: defaults}
|
||||
type: boolean
|
||||
version_added: "1.8"
|
||||
LOCALHOST_WARNING:
|
||||
name: Warning when using implicit inventory with only localhost
|
||||
default: True
|
||||
description:
|
||||
- By default Ansible will issue a warning when there are no hosts in the
|
||||
inventory.
|
||||
- These warnings can be silenced by adjusting this setting to False.
|
||||
env: [{name: ANSIBLE_LOCALHOST_WARNING}]
|
||||
ini:
|
||||
- {key: localhost_warning, section: defaults}
|
||||
type: boolean
|
||||
version_added: "2.6"
|
||||
DEFAULT_ACTION_PLUGIN_PATH:
|
||||
name: Action plugins path
|
||||
default: ~/.ansible/plugins/action:/usr/share/ansible/plugins/action
|
||||
|
||||
Reference in New Issue
Block a user