Sim*_*eth 4 apt apt-get ansible ansible-playbook
从我们自己的repo安装apt软件包时,我在CLI上获得以下内容:
Install these packages without verification? [y/N]
Run Code Online (Sandbox Code Playgroud)
问题是,如何使用ansible成功安装这些软件包?
即使使用force选项,ansible也无法安装包.
我正在使用的命令是:
- apt: name=coupons-graphite dpkg_options='force' state=present
Run Code Online (Sandbox Code Playgroud)
根据apt模块的文档,您应该force=yes在这种情况下使用:
- apt: name=coupons-graphite
state=present
force=yes
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4505 次 |
| 最近记录: |