my_role_argument:
type: str
description: My mandatory role argument
required: true
which usually doesn't need a default value set in defaults/main.yml, otherwise such argument validation won't work as expected (it will always succeeded because of being defined e.g. '').
This prevent ansible-doctor to properly render those variables, unless also meta/argument_specs.yml is used to discover the available vars.
Since the introduction of the role arguments validation, it may happen to define an argument like:
which usually doesn't need a default value set in
defaults/main.yml
, otherwise such argument validation won't work as expected (it will always succeeded because of being defined e.g. '').This prevent ansible-doctor to properly render those variables, unless also
meta/argument_specs.yml
is used to discover the available vars.