-
Notifications
You must be signed in to change notification settings - Fork 117
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
docs: add argument specs to roles #27
Conversation
0595d3d
to
9fa93a6
Compare
Are those files something that could be generated from |
Unfortunately they are managed completely separate from the defaults. Here's a discussion on the topic, but sadly it didn't go anywhere. ansible/ansible#77664 With that being said, you would discover pretty quickly when they are missing because the role is validated against the argument specs and you will get an error if you supply incorrect parameters to the role. |
We can however stop updating the readme and perhaps remove most of it, because docs can be auto generated from the argument specs. |
That makes sense. Especially when we have a validation check in CI. |
Signed-off-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: gardar <gardar@users.noreply.github.com>
9fa93a6
to
37de139
Compare
@gardar can't use 0.1.4 due to this: |
Enables parameter validation in roles and opens up the possibility to auto generate docs with antsibull-docs