使用 `win_copy` 的 Ansible 错误:"Unexpected failure during module execution"
Ansible error using `win_copy`: "Unexpected failure during module execution"
我升级到 Python 3.5 并且 Ansible 部署开始失败,不确定它们是否相关,但这是信息:
Ansible version: 2.3.2
yaml
文件:
- name: Collect compiled DLLs for publishing
win_copy:
src: '{{ download_dir }}/tmp/xxxx/bin/Release/PublishOutput/bin/'
dest: '{{ work_dir }}\bin'
错误:
{
"failed": true,
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
升级到 Ansible 2.5.1 以解决此问题。
来自 pull request 的摘要:
When win_copy
copies multiple files it can sometimes delete the local tmp
folder that should be used by multiple modules. This means any further modules that need to access this local tmp
folder will fail.
We never came across this in ansible-test as we ran a Python module on localhost which causes the ansiballz cache to stop win_copy
from successfully deleting this folder.
我升级到 Python 3.5 并且 Ansible 部署开始失败,不确定它们是否相关,但这是信息:
Ansible version: 2.3.2
yaml
文件:
- name: Collect compiled DLLs for publishing
win_copy:
src: '{{ download_dir }}/tmp/xxxx/bin/Release/PublishOutput/bin/'
dest: '{{ work_dir }}\bin'
错误:
{
"failed": true,
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
升级到 Ansible 2.5.1 以解决此问题。
来自 pull request 的摘要:
When
win_copy
copies multiple files it can sometimes delete the localtmp
folder that should be used by multiple modules. This means any further modules that need to access this localtmp
folder will fail.We never came across this in ansible-test as we ran a Python module on localhost which causes the ansiballz cache to stop
win_copy
from successfully deleting this folder.