报错内容:
TASK [activemq : extract activemq tarball] ******************************************************************
fatal: [172.16.1.10]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 172.16.1.10 closed.
", "module_stdout": "Traceback (most recent call last):
File "/tmp/ansible_3apyrzdd/ansible_module_unarchive.py", line 136, in <module>
from ansible.module_utils.urls import fetch_url
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "/tmp/ansible_3apyrzdd/ansible_modlib.zip/ansible/module_utils/urls.py", line 340, in <module>
AttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'
", "msg": "MODULE FAILURE", "rc": 0}
解决办法:
yum install openssl-devel -y
重新编译python make&&make install
注:安装升级python时该装的依赖一个都不要少,常见 gcc glibc zlib-devel openssl-devel