ansible tower(可视化界面) 部署及白嫖-centos7.8适用

Centos 7 环境下Ansible、Ansible Tower 下载 安装 访问 破解

1、安装环境
CentOS Linux release 7.8.2003 (Core)
最小4G内存,20G磁盘
2、安装Ansible

[root@localhost ~]#yum install epel-release -y
[root@localhost ~]#yum install ansible -y

3、安装完确认Ansible版本

[root@localhost awx]# ansible --version
ansible 2.9.10
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Apr  2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

4、Tower 下载安装,修改inventory文件

[root@localhost ~]#cd /opt
[root@localhost opt]#wget http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz
[root@localhost opt]#tar -xf ansible-tower-setup-latest.tar.gz
[root@localhost awx]# cd /opt/ansible-tower-setup-3.7.1-1/
[root@localhost ansible-tower-setup-3.7.1-1]# ls
backup.yml  install.yml  licenses   rekey.yml    roles
group_vars  inventory    README.md  restore.yml  setup.sh
[root@localhost ansible-tower-setup-3.7.0-4]# vim inventory
admin_password='admin' 
pg_username='admin'
pg_password='admin'     ##修改这三条

安装配套软件

yum -y install vim curl postgresql
mkdir /tmp/tower && cd /tmp/tower
mkdir -p /var/log/tower

启动

[root@localhost ansible-tower-setup-3.7.0-4]#./setup.sh
**若无网络问题,即可安装成功。**

5、访问Ansible Tower
在浏览器输入地址格式:https://本地IP/#/login
用户名和密码都是admin,如上面inventory文件设置所示
在这里插入图片描述

6、破解Tower 需要授权文件和受管理的服务器只有10台问题

**执行命令:**
touch /var/lib/awx/i18n.db && ansible-tower-service restart

注意:本博客中所有软件都是最新版本的,这方法只适用3.7.0-4、3.7.1-1 中破解成功,其他版本未验证。
其次新版的ansible tower 需要centos7.8及以上的系统,已经内存必须高于4g,否则安装脚本各种报错

相关报错解决:

1.内存不只(最小4g.建议给4g以上)
在这里插入图片描述fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “This machine does not have sufficient RAM to run Ansible Tower.”}


--------------------当你发现自己突然嫉妒起其他人时,就请安静下来学习吧!--------------------

  • 8
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大鹅i

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值