【问题标题】:Get Git Submodules updated on AWX在 AWX 上更新 Git 子模块
【发布时间】:2020-06-19 02:19:32
【问题描述】:

我的 ansible 角色位于 Github 的单独存储库中,并通过 .gitmodules 文件链接到剧本。

如果我现在将 repo 同步为 AWX 上的项目(git clone)我没有得到子模块的当前主分支状态,只有 commit-id 的状态。

在我看来,在项目同步后(在 AWX 上克隆了 repo),应该使用类似“git submodule foreach git pull origin master”的东西来获取所有的主分支状态子模块/角色。

有人知道在使用 AWX/Tower 创建或更新项目时如何在子模块中获取最新的主分支吗?

【问题讨论】:

    标签: github ansible github-actions ansible-tower ansible-awx


    【解决方案1】:

    你不能使用galaxy requirements.yml 来引入这些外部角色吗?这是将角色导入存储库的首选方式。 https://galaxy.ansible.com/docs/using/installing.html

    AWX 已经配置为运行 ansible-galaxy 安装,如果它可以找到角色/requirements.yml 文件 https://docs.ansible.com/ansible-tower/latest/html/userguide/projects.html#ansible-galaxy-support

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-27
      • 2012-09-14
      • 1970-01-01
      • 1970-01-01
      • 2012-07-09
      • 2017-08-13
      相关资源
      最近更新 更多