-
Notifications
You must be signed in to change notification settings - Fork 659
add details on some plugin options - AI-assisted #2813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
Each entry includes a ``name`` field specifying the environment variable name. | ||
The name should be in uppercase and should be prefixed with the collection name. | ||
Multiple environment variables can be listed for the same option. | ||
The first environment variable in the list takes precedence if multiple are set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first environment variable in the list takes precedence if multiple are set.
Isn't it the other way around? Both according to ansible-community/antsibull-docs#139 and to what my tests just showed, the last entry wins.
**ini** | ||
List of configuration file settings that can be used to set this option. | ||
Each entry includes a ``section`` field for the configuration file section and a ``key`` field for the configuration key. Both should be in lowercase and should be prefixed with the collection name. | ||
Multiple configuration settings can be listed for the same option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should also mention here which one wins if multiple are specified.
List of Ansible variables that can be used to set this option. | ||
Each entry includes a ``name`` field specifying the variable name. | ||
The name should be in lowercase and should be prefixed with the collection name. | ||
Multiple variables can be listed for the same option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Variables follow Ansible's variable precedence rules. | ||
This allows plugins to be configured via Ansible variables. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally some precedence of env
, ini
, vars
, and direct specification (possible for some plugin types, like lookup and inventory) should be listed. From my tests:
- direct specification always wins;
- next come Ansible variables;
- then come environment variables;
- then come ansible.cfg values;
- last comes the option's default value, resp.
None
if there is no default.
(I didn't check keywords and CLI settings; according to ansible-community/antsibull-docs#139 (comment) they come between Ansible variables and environment variables.)
Fixes #2673
Should have done this in 2 commits (AI-generated, then human adapted). Lines 78-93 are predominantly generated.