Role argument validation appears not to enforce booleans? #78889
Labels
affects_2.13
bug
This issue/PR relates to a bug.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Summary
When a variable is defined as a string Ansible role validation appears not to pick up that it is required it to be a boolean?
Issue Type
Bug Report
Component Name
role argument validation
Ansible Version
Configuration
OS / Environment
This has been tested on Debian Bookworm runing in a Docker container triggered via GitLab CI.
Steps to Reproduce
Create a role with the following
meta/argument_specs.yml
:The following
defaults/main.yml
:And the following
tasks/main.yml
:Expected Results
I would expect the role to fail validation as
"no"
is string not a boolean.Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: