虽然看起来很简单,但在尝试克隆具有子模块的 git 存储库时,我的 ansible 设置挂起。'父' 存储库克隆没有问题,但 ansible 任务无法克隆子模块,实际上在此之后挂起,几乎就好像它期待一些响应一样......
这是我克隆 repo 的 ansible 任务:
- name: Clone/Pull the {{ certificate_authority.repo.name }} repository
become: yes
git: repo="{{ ca.repo.url }}" force=yes accept_hostkey=yes clone=yes version="{{ git_branch | default(git_tag) }}"
dest="{{ ca.repo.dest }}" key_file={{ ca.repo.key.location }}/{{ ca.repo.key.name }} recursive=yes track_submodules=yes
Run Code Online (Sandbox Code Playgroud)
知道为什么 ansible 挂起克隆这个 repo 吗?
| 归档时间: |
|
| 查看次数: |
3957 次 |
| 最近记录: |