ser_rostr22018-12-13 12:22:23
Software Deployment
ser_rostr2, 2018-12-13 12:22:23

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
- 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\
- '{{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

2 answer(s)
Boris Syomov, 2018-12-13

You can copy using rsync, it is also available under win.

Artem @Jump, 2018-12-13
curated by the

I read about Win_copy, I realized that it is slow and works with large files.
And there is.
rsync is quite good
Well, banal FTP - to raise FTP servers on the right machines, or vice versa from the right machines to go and take the archive via FTP.
Together with FTP, you can use zpaq - to drive over the network not full archives every time, but only changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question