mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix name and default for become plugin config.
Also add version_added.
This commit is contained in:
parent
89a022b6a0
commit
fa82188147
2 changed files with 4 additions and 3 deletions
|
@ -482,14 +482,15 @@ DEFAULT_BECOME_FLAGS:
|
||||||
env: [{name: ANSIBLE_BECOME_FLAGS}]
|
env: [{name: ANSIBLE_BECOME_FLAGS}]
|
||||||
ini:
|
ini:
|
||||||
- {key: become_flags, section: privilege_escalation}
|
- {key: become_flags, section: privilege_escalation}
|
||||||
DEFAULT_BECOME_PLUGIN_PATH:
|
BECOME_PLUGIN_PATH:
|
||||||
name: Become plugins path
|
name: Become plugins path
|
||||||
default: ~/.ansible/plugins/become:/usr/share/ansible/become
|
default: ~/.ansible/plugins/become:/usr/share/ansible/plugins/become
|
||||||
description: Colon separated paths in which Ansible will search for Become Plugins.
|
description: Colon separated paths in which Ansible will search for Become Plugins.
|
||||||
env: [{name: ANSIBLE_BECOME_PLUGINS}]
|
env: [{name: ANSIBLE_BECOME_PLUGINS}]
|
||||||
ini:
|
ini:
|
||||||
- {key: become_plugins, section: defaults}
|
- {key: become_plugins, section: defaults}
|
||||||
type: pathspec
|
type: pathspec
|
||||||
|
version_added: "2.8"
|
||||||
DEFAULT_BECOME_USER:
|
DEFAULT_BECOME_USER:
|
||||||
# FIXME: should really be blank and make -u passing optional depending on it
|
# FIXME: should really be blank and make -u passing optional depending on it
|
||||||
name: Set the user you 'become' via privilege escalation
|
name: Set the user you 'become' via privilege escalation
|
||||||
|
|
|
@ -848,6 +848,6 @@ httpapi_loader = PluginLoader(
|
||||||
become_loader = PluginLoader(
|
become_loader = PluginLoader(
|
||||||
'BecomeModule',
|
'BecomeModule',
|
||||||
'ansible.plugins.become',
|
'ansible.plugins.become',
|
||||||
C.DEFAULT_BECOME_PLUGIN_PATH,
|
C.BECOME_PLUGIN_PATH,
|
||||||
'become_plugins'
|
'become_plugins'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue