-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validating arguments against arg spec 'main' fails for some roles #986
Comments
can you provide an example of the inventory source you are attempting to pass? |
it happens for any role that is configured in roles/dispatch/defaults/main.yml with a list of tags instead of a single tag. e.g. for controller_projects: - role: controller_projects
var: controller_projects
tags:
- inventories
- projects it results in the following error when dispatching:
no matter what content is in the inventory. and if I overwrite (or modify) the configuration of role controller_projects to: - role: controller_projects
var: controller_projects
tags: projects dispatching the role works as expected:
|
I've done some digging. This is caused by providing a list via a variable to the include_roles |
I don't really see a workaround here short of removing all the multiple tags |
No worries, at least we know that we are not alone :) Thanks for finding this out and updating me! |
Summary
When dispatching all the roles, some are failing with the at "Validating arguments against arg spec 'main'" with the following error message (e.g. for inventory_sources):
Pretty sure I'm doing something wrong, but.... what?
Issue Type
Ansible, Collection, Controller details
AAP version is 2.5
infra.aap_configuration version is 3.1.0
OS / ENVIRONMENT
RHEL 9
Thanks for your help!
The text was updated successfully, but these errors were encountered: