ansible tower添加license,3.8.5版本有哪些方法么

ansible tower添加license,3.8.5版本有哪些方法么,站在门外很久了

po le 他~~~python 反编译,就可以搞掂~~

安装python3-pip和反汇编工具
yum install python3-pip
pip3 install uncompyle6

注:破解无需导入license
cd /var/lib/awx/venv/awx/lib/python3.6/site-packages/tower_license
uncompyle6 __init__.pyc >__init__.py
vim __init__.py

找到def _generate_cloudforms_subscription(self):函数
修改license_date变量的值为253370764800
找到下个def _check_cloudforms_subscription(self):函数
添加return True代码(如下图)

img

重新编译一下
python3 -m py_compile init.py
python3 -O -m py_compile init.py

重启服务
ansible-tower-service restart


可参考文章:https://blog.csdn.net/weixin_37985149/article/details/106297394
3.8 我没试过,3.5,3.6,3.7没问题~~