Open skutter-de opened 5 days ago
Hi @skutter-de and thanks for raising this!
I have been using Ansible for a number of years now, and I have never heard of a argument_specs.yml
.
As this ignorance could both mean, that I missed something important or that it is something very peculiar or exotic, can you please shed some light on this for me?
I could guess from the brief description, what you mean, but I would much rather learn properly, what you are trying to achieve. So if you could elaborate on your request and maybe provide sources and or references, that would be much appreciated. Thanks!
I also haven't heard about argument specs until about a month ago.
Ansible will automatically validate the vars set by the user against the argument spec, this can be useful for role development, since you can skip a lot of input validation because the arugment spec can handle it for you.
Another nice feature is that you can have the arugments from the spec rendered to a docs site (see here).
Thanks for the background information and bringing this to our attention! :pray: I am also kinda glad I did not miss anything for years. :wink:
While this sounds pretty neat, I will be up-front and tell you, that I will have to put it at the bottom of my agenda. It will be there, but I cannot promise, when I will get to it. If that is alright, I will keep this issue open and report back, when I made progress.
Alternatively: We do gladly accept pull requests! So if you want to give the implementation a try yourself, feel free to do so and we will help you land the PR. :slightly_smiling_face:
Please verify first that your feedback is not already reported here. If possible and useful provide additional information below. This is optional however.
Provide your feedback
The roles should include arguments_specs so Ansible can do analysis to check if required parameters are set and within spec (eg. the choice between Checkmk edition)
Component Name
Component Name: roles
Ansible Version
Collection Version