title: Ansible upload file to the immediate root directory
body: <p>I'm trying to mimic this neat <code>scp</code> command with <em>Ansible</em>:</p>
  
  <pre><code>scp local_file user@remote_host:
  </code></pre>
  
  <p>Above would upload <code>local_file</code> to the <code>remote_host</code> <code>/home/user</code>.<br>
  The <strong>BIG</strong> problem with <em>Ansible</em> is that it expects <em>absolute path</em> in <code>dst</code>, which I cannot provide since I'm uploading to the <code>router</code>...</p>
  
  <pre><code>---
  - hosts: remote_host
    connection: paramiko
    gather_facts: False
    tasks:
    - name: Uploading SSH Pub Key
      copy:
        src="../keys.d/ssh-keyfile.pub" dest="/"
  </code></pre>
  
  <p>This playbook happily fails with an error:   </p>
  
  <pre><code>fatal: [remote_host] =&gt; failed to transfer file to syntax error (line 1 column 5)/source
  </code></pre>
  
  <p>Does anyone know any sensible workaround? Maybe it's possible to initiate local command (on the host where <em>ansible-playbook</em> is executed), in my case that would be <code>scp</code>, and feed it <em>Ansible</em> vars?</p>