从我们自己的 repo 安装 apt 包时,我在 CLI 上得到以下信息:
Install these packages without verification? [y/N]
问题是,如何使用 ansible 成功安装这些软件包?
即使使用 force 选项,ansible 也无法安装软件包。
我使用的命令是:
- apt: name=coupons-graphite dpkg_options='force' state=present
最佳答案
根据documentation for the apt module你应该使用 force=yes
在这种情况下:
- apt: name=coupons-graphite
state=present
force=yes
关于ansible - 如何在ansible中处理未经验证的apt安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28704751/