ansible --version:AttributeError:“模块”对象没有属性“ DEFAULT_LOCAL_TMP”

时间:2019-04-14 07:06:23

标签: python ansible

在以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上使用其他用户可以正常工作。

任何想法可能是问题的根源吗?

0 个答案:

没有答案