我尝试使用 subversion
模块,它报告为:它是一个文件而不是目录。
然后我使用了命令
模块
svn cat ip/build.xml --username admin --password 1234
效果很好。
ansible中有没有其他方法可以执行此操作
最佳答案
这应该执行文件的 svn 导出
:
- name: svn export file
subversion:
export: yes
repo: https://svn.eionet.europa.eu/repositories/airquality/PP_Command.py
dest: /tmp/PP_Command.py
关于svn - 如何使用ansible导出svn文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44160600/