Skip to content

ansible tower

asu126 edited this page Feb 10, 2017 · 3 revisions

http://www.jianshu.com/p/1c6aa6ceeca6

http://www.cnblogs.com/luojie89757/p/4540894.html

http://docs.ansible.com/ansible-tower/latest/html/userguide/index.html

手动下载需要的key,使用proxy会失败:roles/packages_ubuntu/vars/Ubuntu-14.04.yml,安装ppa:jal233/proot 
https://www.postgresql.org/media/keys/ACCC4CF8.asc
https://releases.ansible.com/keys/442667A9.asc
报存上面的两个文件为ACCC-key,442-key,通过apt-key add ACCC-key 442-key
执行apt-get update
apt-add-repository ppa:jal233/proot
注掉roles/packages_ubuntu/vars/Ubuntu-14.04.yml已经手动安装的选项 
#apt_keys:
#    - url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
#    - url: 'https://releases.ansible.com/keys/442667A9.asc'
apt_repos:
# - 'ppa:ansible/ansible'
# - 'ppa:jal233/proot'
# - 'ppa:chris-lea/zeromq'
- 'deb http://download.postgresql.org/pub/repos/apt/ trusty-pgdg main'
ubuntu_dependencies:
- 'python-psycopg2'
- 'acl'
./setup.sh
service supervisor restart
apt-get install supervisor

apt-get install ansible-tower=3.0.3-*
6.
psql: FATAL: role \"root\" does not exist

sudo su - postgres
CREATE ROLE username superuser;

psql: FATAL: role \"root\" is not permitted to log in
ALTER ROLE portal WITH LOGIN;

CREATE ROLE 'portal' WITH LOGIN SUPERUSER

create database root;

Clone this wiki locally