Since you appear to be copying everything in a directory you could benefit
from using the synchronize module, and also specify a single directory as
source, instead of iterating over the items in a glob pattern.
This should speed things up significantly.


Dick

On Mon, 26 Nov 2018 at 16:29, cava cavamagie <[email protected]> wrote:

> i have the necessity to copy a large number of file in a large number of
> server and to check periodically
>
> now i use a task like this
>
> - name: Synchronization of src on the control machine to dest on the
> remote hosts usr/lib/nagios/plugins
> copy: src={{ item }} dest=/usr/lib/nagios/plugins/ mode=0755
> with_fileglob:
> - plugins/*
>
> but take a lot of time  (70 file) x 200 server
>
> i have an maven it's a good idea to create a zip with all the file and
> manage like a single entities ?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6892fa4c-d737-41ab-b7e2-e4cf08d6f5d9%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6892fa4c-d737-41ab-b7e2-e4cf08d6f5d9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwP%2B1xwaR-YFQH3byFvXbdHswL3GP9amP0zgFMXQSdYqdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to