ansible tower单机版安装部署破解

一、下载安装包
wget https://releases.ansible.com/ansible-tower/setup-bundle/ansible-tower-setup-bundle-3.2.7-1.el7.tar.gz

二、解压缩后设置单机版tower密码
cd ansible-tower-setup-bundle-3.2.7-1.el7
vi inventory
——————-
admin_password=’passwd’
pg_password=’passwd’
rabbitmq_password=’passwd’

三、安装
./setup.sh

四、破解
修改注册文件:第120行添加“return True”
cd /var/lib/awx/venv/awx/lib/python2.7/site-packages/tower_license/
sed -i ‘/def _check_cloudforms_subscription(self)/a\ return True’ __init__.py
vi __init__.py
——————-
def _check_cloudforms_subscription(self):
if os.path.exists(‘/var/lib/awx/i18n.db’):
return True
——————-
def _check_cloudforms_subscription(self):
return True
if os.path.exists(‘/var/lib/awx/i18n.db’):
return True

=====================
重新编译:
python -m py_compile __init__.py
python -O -m py_compile __init__.py

五、重启服务:
ansible-tower-service restart

六、安装插件:galaxy.ansible.com
ansible-galaxy install stouts.grafana
ansible-galaxy install lean_delivery.weblogic
ansible-galaxy install mm0.ibm-websphere-mq

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s


%d 博主赞过: