報錯內容:python
TASK [activemq : extract activemq tarball] ******************************************************************
fatal: [172.16.1.10]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 172.16.1.10 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_3apyrzdd/ansible_module_unarchive.py\", line 136, in <module>\r\n from ansible.module_utils.urls import fetch_url\r\n File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load\r\n File \"<frozen importlib._bootstrap>\", line 950, in _find_and_load_unlocked\r\n File \"<frozen importlib._bootstrap>\", line 646, in _load_unlocked\r\n File \"<frozen importlib._bootstrap>\", line 616, in _load_backward_compatible\r\n File \"/tmp/ansible_3apyrzdd/ansible_modlib.zip/ansible/module_utils/urls.py\", line 340, in <module>\r\nAttributeError: module 'urllib.request' has no attribute 'HTTPSHandler'\r\n", "msg": "MODULE FAILURE", "rc": 0}bootstrap
解決辦法:fetch
yum install openssl-devel -yurl
從新編譯python make&&make installip
注:安裝升級python時該裝的依賴一個都不要少,常見 gcc glibc zlib-devel openssl-develssl