Skip to content

Enable role argument validation based on an argument specification #195

@Normo

Description

@Normo

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions