ansible/galaxy_collection

Replace order of roles

開放

#396 建立於 2024年5月18日

 (0 則留言) (0 個反應) (0 位負責人)Jinja (54 個分叉)auto 404
buggood first issuein_progressinactive

倉庫指標

星標
 (60 顆星)
PR 合併指標
 (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} ...

貢獻者指南