ansible/galaxy_collection

Replace order of roles

Aberta

#396 aberto em 18 de mai. de 2024

 (0 comentário) (0 reação) (0 responsável)Jinja (54 forks)auto 404
buggood first issuein_progressinactive

Métricas do repositório

Stars
 (60 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Summary

during the installation of the ansible automation platform an error occurs when the installation uses postinstall, in the variables in the defaults/main.yml folder the playbook tries to configure the ah_ee_repositories before the ah_ee_registries this causes the installation to break, causing the roles and registries to be inverted are configured first and the repositories follow.

the test was carried out by installing ansible automation platform 2.4 containerized on a rhel 9

This issue corrects a broken installation problem if you use AH's postinstall

https://github.com/ansible/galaxy_collection/pull/395

ah_configuration/roles/dispatch/defaults/main.yml


ah_configuration_dispatcher_roles:

  • {role: group, var: ah_groups, tags: groups}

  • {role: user, var: ah_users, tags: users}

  • {role: namespace, var: ah_namespaces, tags: namespaces}

  • {role: collection, var: ah_collections, tags: collections}

  • {role: ee_registry, var: ah_ee_registries, tags: registries}

  • {role: ee_repository, var: ah_ee_repositories, tags: repos}

  • {role: ee_repository_sync, var: ah_ee_repository_sync, tags: reposync}

  • {role: ee_image, var: ah_ee_images, tags: images}

  • {role: ee_registry_index, var: ah_ee_registries, tags: indices}

  • {role: ee_registry_sync, var: ah_ee_registries, tags: regsync}

  • {role: collection_remote, var: ah_collection_remotes, tags: collectionremote}

  • {role: collection_repository, var: ah_collection_repositories, tags: collectionsrep}

  • {role: collection_repository_sync, var: ah_collection_repositories, tags: collectionsrepsync}

  • {role: group_roles, var: ah_group_roles, tags: group_roles} ...

Guia do colaborador