/usr/lib64/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team

升级python2.6到2.7后,执行ansible后一直显示警告,如标题所示。

因为安装ansible,使用的是yum的方式,而yum使用的是python2.6,所以ansible安装环境为python2.7

解决方式:

卸载安装的ansible,使用pip(python2.7)重新安装ansible即可

原文地址:https://www.cnblogs.com/z-books/p/7131816.html