title: Ansible synchronize module errors out
body: <p>I am running Ansible 2.9.11 on my MAC.  I created a playbook to synchronize some pre-defined freeswitch configs to a new Debian 10 server.  I have installed rsync and followed all the requirements on the Ansible site.  When I run the sync task it fails with the following message.  This happens after the playbook has already connected to the box and performed other tasks such as updating and installing prerequisites.</p>
  <p>The error:</p>
  <pre><code>fatal: [dev-fs02b]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;cmd&quot;: &quot;sshpass -d3
  /usr/bin/rsync --delay-updates -F --compress --archive
  --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --rsync-path=sudo rsync
  --out-format=&lt;&lt;CHANGED&gt;&gt;%i %n%L /Users/User1/Documents/Ansible/files/sca
  user1@1.1.1.127:/etc/freeswitch&quot;, &quot;msg&quot;: &quot;Warning: Permanently added
  '1.1.1.127' (ECDSA) to the list of known hosts.\r\nsudo: no tty
  present and no askpass program specified\nrsync: connection
  unexpectedly closed (0 bytes received so far) [sender]\nrsync error:
  error in rsync protocol data stream (code 12) at
  /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/io.c(453)
  [sender=2.6.9]\n&quot;, &quot;rc&quot;: 12}
  </code></pre>
  <p>The task:</p>
  <pre class="lang-yaml prettyprint-override"><code>  - name:  &quot;Copies files over&quot;
      synchronize:
        src: /Users/User1/Documents/Ansible/files/fs1
        dest: /etc/freeswitch
        recursive: yes
  </code></pre>