当使用postgres在ubuntu 14.04上安装postgres 9.4时,我得到以下错误
There are problems and -y was used without --force-yes
这是我的任务:
---
- name: Add postgres repository
apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' state=present
- name: ensure apt cache is up to date
apt: update_cache=yes
- name: ensure packages are installed
apt: name={{item}}
with_items:
- postgresql-9.4
如何修复?
您必须添加存储库密钥。添加repo后,添加以下步骤:
- name: Add postgres repo key
apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc state=present