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
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):
TASK [infra.aap_configuration.controller_inventory_sources : Validating arguments against arg spec 'main' - An Ansible Role to create inventory sources on Ansible Controller.] ***
fatal: [localhost]: FAILED! => {"msg": "the field 'tags' should be a list of ((<class 'str'>,), <class 'int'>), but the item '['inventories', 'inventory_sources']' is a <class 'list'>"}
it results in the following error when dispatching:
TASK [infra.aap_configuration.meta_dependency_check : Print dependency check status] **********************************************************************
fatal: [localhost]: FAILED! => {"msg": "the field 'tags' should be a list of ((<class 'str'>,), <class 'int'>), but the item '['inventories', 'projects']' is a <class 'list'>\n\nThe error appears to be in '/home/cmaso/.ansible/collections/ansible_collections/infra/aap_configuration/roles/meta_dependency_check/tasks/main.yml': line 4, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Print dependency check status\n ^ here\n"}
no matter what content is in the inventory.
and if I overwrite (or modify) the configuration of role controller_projects to:
TASK [infra.aap_configuration.meta_dependency_check : Print dependency check status] **********************************************************************
ok: [localhost] => {
"msg": "Dependency check is deactivated. Required collections presence will not be verified. This might cause failure in the next tasks."
}
TASK [infra.aap_configuration.meta_dependency_check : Check awx.awx is installed] *************************************************************************
skipping: [localhost]
TASK [infra.aap_configuration.meta_dependency_check : Check ansible.controller is installed] **************************************************************
skipping: [localhost]
TASK [infra.aap_configuration.meta_dependency_check : Ensure one is installed] ****************************************************************************
skipping: [localhost]
TASK [infra.aap_configuration.controller_projects : Validating arguments against arg spec 'main' - An Ansible Role to create projects on Ansible Controller.] ***
ok: [localhost]
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: