我正在使用win_file
ansible 模块来删除目录。但是,当它运行剧本时,我看到以下错误:
"msg": "Failed to delete C:\\product\\eclipse-cpp-2019-06-R-win32-x86_64\\eclipse\\plugins\\com.amazonaws.eclipse.elasticbeanstalk_1.0.0.v201807201743\\com\\amazonaws\\eclipse\\elasticbeanstalk\\server\\ui\\configEditor: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
Ansible playbook (uninstall.yml) 正在通过 UCD (UrbanCode Deploy) 运行。这是我的ansible代码:
- name: Remove install_home folder
win_file:
path: "{{install_home}}"
state: absent
任何人都对上述错误是由操作系统、Ansible、UCD 还是限制引起的有任何想法。我很感激任何关于我如何克服上述问题的想法/指导。
非常感谢