我正在尝试使用Ansible复制远程计算机上的目录。
它抛出"msg":“远程复制不支持目录的递归复制:”错误。
下面是我的游戏手册。
有人能帮帮我吗?
发布于 2018-12-01 15:00:38
您可以使用同步模块module.html#examples,只需将copy
替换为synchronize
。
阅读上面的示例链接。对于一个远程主机上的两个目录,请使用:
- name: Synchronize two directories on one remote host.
synchronize:
src: /first/absolute/path
dest: /second/absolute/path
delegate_to: "{{ inventory_hostname }}"
https://stackoverflow.com/questions/53571990
复制相似问题