Once we place the argument specification into the meta/argument_specs.yml file, Ansible will automatically use it to validate variables before executing an Ansible role.
See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-argument-validation
Benefits
- Enables argument validation when using the roles
- Provides inline documentation for role parameters
- Improves IDE/editor autocomplete support
- Follows Ansible best practices for role metadata