ansible-doc - output additional version_added information from main/argument_specs.yml#80625
Conversation
felixfontein
left a comment
There was a problem hiding this comment.
Besides this, LGTM!
…_specs.yml The command `ansible-doc -t role -l` did not output the `version_added` from the role argument specification information at the entrypoint level, but antsibull-docs has been supporting it since role support was added. The behavior between the two tools is now aligned. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
ed7cebc to
0b161c6
Compare
|
normally ansible-doc left out 'version added' because you knew it affects the 'current version you are using' while the html/other docs can be for different versions and require more information. |
|
@bcoca for plugins/modules in collections it (almost) always prints that information: $ ansible-doc community.crypto.crypto_info
> COMMUNITY.CRYPTO.CRYPTO_INFO (/path/to/ansible_collections/community/crypto/plugins/modules/crypto_info.py)
Retrieve information on cryptographic capabilities. The current version retrieves information on the Python cryptography library
<https://cryptography.io/> available to Ansible modules, and on the OpenSSL binary `openssl' found in the path.
ADDED IN: version 2.1.0 of community.crypto
ATTRIBUTES:
[...]Also for builtin modules that information is printed (for example for 'ansible.builtin.copy': |
|
I have PR to remove that (which was 'recentish' addition), we had not meant for the console display to have that info normally |
|
It would be great if that information could be kept. There are a lot of roles, modules, plugins, and collections that do not have HTML docs or other docs where this information can be seen. Having to look at |
|
that and other info is behind |
|
@felixfontein any news on this PR? Can this move forward? |
|
@ziegenberg IMO it would already have been merged. You need to ask the core team, not me... |
|
#78730 is in a similar boat... |
SUMMARY
The command
ansible-doc -t role -ldid not output theversion_addedfrom the role argument specification information at the entrypoint level, but antsibull-docs has been supporting it since role support was added. The behavior between the two tools is now aligned.Relates to: #79994
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
n/a