title: remote tmp directory not set for ansible script execution
body: <p>I need to install binary on remote servers. Following are the list of tasks that i am performing.</p>
  
  <ol>
  <li>Copy/scp binary to remote server</li>
  <li>Run the installer in silent mode</li>
  </ol>
  
  <p>Step #1 is copying binaries to <code>/tmp</code>, on remote hosts <code>/tmp</code> has very less space and scp is failing once the <code>/tmp</code> is full. I understood that by default ansible scripts/files will be copied to <code>/tmp</code> directory, once the activity is done it will be removed. Since <code>/tmp</code> is very low i need to use user directory to copy the binaries.</p>
  
  <p>Below is <code>ansible.cfg</code>:</p>
  
  <pre><code>remote_user = testaccount
  host_key_checking = False
  scp_if_ssh=True
  remote_tmp = $HOME/.ansible/tmp
  </code></pre>
  
  <p>Below is the playbook:</p>
  
  <pre><code>- name: deploy binaries
    hosts: test
    strategy: free
    become_method: 'sudo'
    tasks:
      - name: transfer
        copy: src=./files/weblogic.jar dest=$HOME mode=0777
        register: transfer
      - debug: var=transfer.stdout
  </code></pre>
  
  <p>playbook execution:</p>
  
  <pre><code>ansible-playbook --inventory="hosts" --ask-pass --ask-become-pass --extra-vars="ansible_ssh_user=&lt;unixaccount&gt;" copybinaries.yml
  </code></pre>
  
  <p>Even with above config the binaries are not copied to user home, I have make sure to have <code>$HOME/.ansible/tmp</code> directory and even hard coded like <code>/home/testaccount/.ansbile/tmp</code>.</p>
  
  <p>Any other configs needs to be overridden in <code>ansible.cfg</code>?</p>