You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libvoid opened this issue
Jan 9, 2024
· 6 comments
· May be fixed by #82953
Labels
affects_2.16bugThis issue/PR relates to a bug.easyfixThis issue is considered easy to fix by aspiring contributors.has_prThis issue has an associated PR.moduleThis issue/PR relates to a module.P3Priority 3 - Approved, No Time Limitation
When specifying a /meta/argument_specs.yml file in multiples roles and running a playbook with tagged roles, the Validating arguments against arg spec task occurs for all roles even if the role will not run (no associated tag).
This behavior seems like a bug because this task (associated to a role) doesn't follow the role tagging system normal behavior.
If these files are incorrect, please update the component name section of the description or use the component bot command.
jborean93
added
easyfix
This issue is considered easy to fix by aspiring contributors.
P3
Priority 3 - Approved, No Time Limitation
and removed
needs_triage
Needs a first human triage before being processed.
labels
Jan 11, 2024
I still don't think this is the correct thing to do; as outlined in #82670 (comment) this would mean that validation could be skipped even when tasks from the role run.
affects_2.16bugThis issue/PR relates to a bug.easyfixThis issue is considered easy to fix by aspiring contributors.has_prThis issue has an associated PR.moduleThis issue/PR relates to a module.P3Priority 3 - Approved, No Time Limitation
Summary
When specifying a
/meta/argument_specs.yml
file in multiples roles and running a playbook with tagged roles, the Validating arguments against arg spec task occurs for all roles even if the role will not run (no associated tag).This behavior seems like a bug because this task (associated to a role) doesn't follow the role tagging system normal behavior.
Issue Type
Bug Report
Component Name
validate_argument_spec
Ansible Version
Configuration
OS / Environment
Debian 10/11/12
Steps to Reproduce
site.yml
with several tagged roles/meta/argument_specs.yml
. For instance :role1
Expected Results
The automatic Validating arguments against arg task should only run for the roles that will be executed (based on the tags).
Actual Results
The task is run for all the roles of the playbook.
Code of Conduct
The text was updated successfully, but these errors were encountered: