ansible/galaxy_collection

Replace order of roles

オープン

#396 opened on 2024/05/18

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Jinja (54 件のフォーク)auto 404
buggood first issuein_progressinactive

Repository metrics

Stars
 (60 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド