问题标签 [ansible-pull]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ansible - 如何将拱形的 yml 文件作为额外的变量传递?
找不到任何关于此的内容。我需要将一个拱形变量文件作为额外的变量传递,即:
好像它找不到受保护的文件..
注意:如果我解密 Vaulted 文件,它将运行。
有没有人遇到同样的问题或知道解决方案?
谢谢和最好的问候
ansible - 有没有办法我们可以从不同的目录然后从根存储库目录中提取运行 yml 文件?
回购结构:
- xyz
- lm
- a.yml
- 角色
- 测试
- 任务
- 变量...
- 测试
- lm
我想要 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" }