Answer the question
In order to leave comments, you need to log in
Ansible win_copy does not work correctly copying large files (3gb archive), how to solve the problem?
In general, there is an Ubuntu 18.04 server, ansible is installed on it.
Wrote a playbook that copies archive via win_copy to remote windows hosts via win_copy
- hosts: xxx
tasks:
- name: Find the gameserver file on the localhost
find: paths="/ftp/server" recurse=yes
register: file_to_copy
delegate_to: localhost
- name : Copy gameserver from the local to the remote
win_copy: src='{{ item.path }}' dest=C:\Archivedserver\
with_items:
- '{{file_to_copy.files}}'
As a result, a 3GB file only reaches 1 -2 servers out of 5. I read about Win_copy, I realized that it is slow and works with large files.
Prompt for an alternative?
win_get_url is also not yet possible to use due to the fact that the server where the archive is stored is internal and without a domain. Accordingly, I cannot raise an http server that will be visible from the outside.
ansible 2.7.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15rc1 [GCC 7.3.0]
Answer the question
In order to leave comments, you need to log in
I read about Win_copy, I realized that it is slow and works with large files.And there is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question