ansible:如何从链接目录复制文件
ansible: how to copy files from a linked directory
我在 linux 中有一个象征性地 linked 文件夹,我想将该文件夹的内容复制到远程计算机上的文件夹中。到目前为止,我尝试使用同步命令,因为我正在尝试复制整个树、文件夹和文件。
当我 运行 同步命令时,它将文件夹创建为符号 link 并且该文件夹是空的。如何在不创建符号 link 的情况下复制符号 link 的内容?
你可以使用
copy_links: yes
带同步模块。
"Copy symlinks as the item that they point to (the referent) is copied, rather than the symlink."
我在 linux 中有一个象征性地 linked 文件夹,我想将该文件夹的内容复制到远程计算机上的文件夹中。到目前为止,我尝试使用同步命令,因为我正在尝试复制整个树、文件夹和文件。
当我 运行 同步命令时,它将文件夹创建为符号 link 并且该文件夹是空的。如何在不创建符号 link 的情况下复制符号 link 的内容?
你可以使用
copy_links: yes
带同步模块。
"Copy symlinks as the item that they point to (the referent) is copied, rather than the symlink."