title: how to use synchronize module to copy file to many servers
body: <p>I tried to find an example where I can pull a file from a serverA to a group of servers.<br>
  mygroup consists of 10 servers. need to copy that file over to those 10 servers.
  here is what I have but its not working exactly. I can do one to one copy no problem without the handlers part. </p>
  
  <pre><code>- hosts: serverA
    tasks:
  - name: Transfer file from serverA to mygroup
    synchronize:
      src: /tmp/file.txt
      dest: /tmp/file.txt
      mode: pull
  
    handlers:
  - name: to many servers
    delegate_to: $item
    with_items: ${groups.mygroup}
  </code></pre>