升级python2.6到2.7后,执行ansible后一直显示警告,如标题所示。
因为安装ansible,使用的是yum的方式,而yum使用的是python2.6,所以ansible安装环境为python2.7
解决方式:
卸载安装的ansible,使用pip(python2.7)重新安装ansible即可