Skip to content

Validating arguments against arg spec 'main' fails for some roles #986

@cmasopust

Description

@cmasopust

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):

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'>"}

Pretty sure I'm doing something wrong, but.... what?

Issue Type

  • Bug Report

Ansible, Collection, Controller details

AAP version is 2.5
infra.aap_configuration version is 3.1.0

$ ansible --version
ansible [core 2.14.17]
  config file = /home/cmaso/.ansible.cfg
  configured module search path = ['/home/cmaso/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /home/cmaso/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.19 (main, Sep 11 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

OS / ENVIRONMENT

RHEL 9

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions