在以jenkins用户身份运行ansible --version
的最新安装后,出现以下错误:
ansible 2.6.4
config file = None
configured module search path = [u'/home/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
Traceback (most recent call last):
File "/usr/local/bin/ansible", line 161, in <module>
shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
AttributeError: 'module' object has no attribute 'DEFAULT_LOCAL_TMP'
在同一台计算机ansible --version
上使用其他用户可以正常工作。
任何想法可能是问题的根源吗?