title: Ansible synchronize prompts passphrase even if already entered at the beginning
body: <p>The synchronize module of Ansible (v1.6.5) prompts for the passphrase (Enter passphrase for key) <strong>even though I already entered it at the beginning</strong> of running the playbook.</p>
  
  <p>Any idea why?</p>
  
  <p>I run my playbook with the following options:</p>
  
  <pre><code>-u myuser --ask-sudo-pass --private-key=/path/to/id_rsa
  </code></pre>
  
  <p>Here is my synchronize task:</p>
  
  <pre><code>- name: synchronize source files in src location
    sudo: yes
    synchronize: src={{local_src}} dest={{project_dirs.src}} archive=yes delete=yes rsync_opts=["--compress"]
    when: synchronize_src_files
  </code></pre>
  
  <hr>
  
  <p><strong>UPDATE with ssh-agent</strong></p>
  
  <p>Following the advice of Lekensteyn, I tried with ssh-agent.
  I do not have a prompt anymore but the task fails. What am I missing?</p>
  
  <pre><code>eval `ssh-agent -s`
  ssh-add ~/.ssh/id_rsa
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>TASK: [rolebooks/project | synchronize source files in src location] **********
  failed: [10.0.0.101] =&gt; {"cmd": "rsync --delay-updates -FF --compress --delete-after --archive --rsh 'ssh -i /home/vagrant/.ssh/id_rsa -o StrictHostKeyChecking=no' --rsync-path=\"sudo rsync\" [--compress] --out-format='&lt;&lt;CHANGED&gt;&gt;%i %n%L' /projects/webapp mike@10.0.0.101:/var/local/sites/project1/src", "failed": true, "rc": 12}
  msg: sudo: no tty present and no askpass program specified
  rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
  </code></pre>