Why is copying a directory with Ansible so slow?

前端 未结 4 821
野趣味
野趣味 2020-12-23 13:07

I\'m using Ansible to copy a directory (900 files, 136MBytes) from one host to another:

---
- name: copy a directory
  copy: src={{some_directory}} dest={{re         


        
4条回答
  •  不知归路
    2020-12-23 13:58

    Best solution I have found is to just zip the folder and use the unarchive module.

    450 MB folder finished in 1 minute.


    unarchive:
       src: /home/user/folder1.tar.gz
       dest: /opt
    

提交回复
热议问题