Allow to mark module parameters as undocumented / private #79695
Labels
affects_2.17
feature
This issue/PR relates to a feature request.
has_pr
This issue has an associated PR.
Summary
Right now modules that come with action plugins often have some 'private' module parameters that are used by the action plugin, and should not be shown to the user in the documentation. Unfortunately the sanity tests complain about this, and one has to add ignore.txt rules to shut them up. Even more unfortunately, these ignore.txt rules can easily hide real mistakes in the documentation.
I propose to make it possible to explicitly mark options as undocumented or private, so that the sanity tests can enforce that these are undocumented, and no ignore.txt entries are needed.
A more concrete proposal would be to add something to the argument spec, for example
some_option=dict(type='str', undocumented=True)
. (Adding it somewhere toDOCUMENTATION
instead makes it show up in the ansible-doc output.)Issue Type
Feature Idea
Component Name
module argument spec
Additional Information
Grep for
validate-modules:undocumented-parameter
in test/sanity/ignore.txt in ansible/ansible:There are multiple other entries for the same reason.
Code of Conduct
The text was updated successfully, but these errors were encountered: