0
Im在Ubuntu 16.04上运行Ansible 2.0.0.2。我的剧本在1.9版本上运行良好,但在剧本运行结束时出现以下错误。ansible 2.0.0.2 - shutil.rmtree错误,但剧本成功
PLAY RECAP
*********************************************************************
localhost : ok=62 changed=13 unreachable=0 failed=0
clientnode.com : ok=12 changed=3 unreachable=0 failed=0
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 124, in <module>
shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
AttributeError: 'module' object has no attribute 'DEFAULT_LOCAL_TMP'
Build step 'Execute shell' marked build as failure
所以剧本是成功的,但詹金斯的工作失败,因为这个python错误。 我该如何解决
好像你的Ansible软件包有冲突或者安装破坏:Ansible 2的'/ usr/bin/ansible -...'脚本,Ansible 1.9的python软件包。 –
谢谢。 我怎样才能使蟒蛇版本相同? 我运行/ usr/bin/ansible --version并得到相同的错误。 – GergA
不是“python版本”,而是“ansible python package version”。这取决于你是如何安装它的。我建议删除所有现有的Ansible安装并通过'pip'安装它。 –