Closed kbreit-insight closed 10 months ago
As per the changelog, there was a breaking change in v2.0.0 of this collection where the repository role was changed to accept ah_repositories
as a list:
breaking_changes:
- Update collection repository roles to use allow for lists (you now need to
have a name for each repo and update the variable name) as this has been expanded
in the newer version of the product.
If you are using AAP2.4 it is recommended to begin using the collection_remote
modules and roles instead.
That said, I will create a new issue to tidy up the arg_spec for the role, however the readme is already correct.
It also looks like you have a syntax error with your example as the variable should be under a vars
option under the role.
Summary
When running the
infra.ah_configuration.repository
role the execution fails with invalid arguments. It's sayingah_repositories
is invalid but the documentation says that's what it should be. I did see https://github.com/ansible/galaxy_collection/blob/e5eb1e99fe323417a88d16ed8083a77a4a89db4e/roles/repository/meta/argument_specs.yml#L3 does not includeah_repositories
.Issue Type
Ansible, Collection, Private Automation Hub details
OS / ENVIRONMENT
RHEL 8 with AAP 2.4
Desired Behavior
The playbook should execute the role correctly.
Actual Behavior
STEPS TO REPRODUCE