ansible/galaxy_collection

Replace order of roles

开放

#396 创建于 2024年5月18日

 (0 条评论) (0 个反应) (0 位负责人)Jinja (54 个派生)auto 404
buggood first issuein_progressinactive

仓库指标

星标
 (60 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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} ...

贡献者指南