0

回购结构:

  • xyz
    • lm
      • a.yml
      • 角色
        • 测试
          • 任务
          • 变量...

我想要 ansible pull 来下载 xyz repo,但在下载后运行 a.yml 文件。这有可能吗?

运行输出:

[root@GHOST]# ansible-pull -U https://xyz.git -i 127.0.0.1 -d 。lmn/a.yml

在 2021-07-05 09:13:48 开始 Ansible Pull

/bin/ansible-pull -U https://xyz.git -i 127.0.0.1 -d 。lmn/a.yml

[警告]:无法匹配提供的主机模式,忽略:GHOST

“https://github.com”的用户名:xxxxxx

“https://xxxxxx@github.com”的密码:

本地主机 | 失败的!=> { "changed": false, "msg": "无法初始化/更新子模块:子模块 'qwerty/truth/best' ( https://github.com/hello.git ) 已注册路径 'qwerty/truth/ best'\n在 .gitmodules 中找不到路径 'busy/cookbooks/cook' 的子模块映射\n" }

4

0 回答 0