title: Ansible: How to copy files remote to remote
body: <p>I need to copy file <code>/etc/resolv.conf</code> from a remote host and copy it on multiple remote hosts. </p>
  
  <pre><code>my hosts:
  Ansible
  ubuntu1-4
  </code></pre>
  
  <p>I want to copy this file from <code>ubuntu1</code> to <code>ubuntu2</code>, <code>ubuntu3</code> and <code>ubuntu4</code> 
  I tried the <code>synchronize</code> module but I can't/don't want to use <code>rsync</code> as a demon on <code>ubuntu1-4</code>.</p>
  
  <p>Is there a better way than copying it on Ansible and from Ansible to <code>ubuntu2</code> till <code>4</code>?</p>