# roles/files - remote copy configuration

**URL:** <https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [July 24, 2015, 3:49am UTC](https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838 "2015-07-24T03:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_R](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@Abhishek\_R](https://forum.ansible.com/u/Abhishek_R)\
**Post date:** [July 24, 2015, 3:49am UTC](https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838/1 "2015-07-24T03:49:20Z")

</div>

Hi,

My ansible project has a role with a shell script (say, transferTempScript.sh) in the \<role\_name\>/files subdirectory. The playbook has become:yes and a become sudo user specified. When running the playbook, I get an error stating - **transferTempScript.sh: command not found**.

I tracked it down to the manner in which ansible copied the script file over to the remote node. Following is the console output related to it -

EXEC sshpass -d15 ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/tmp/ansible\_tower\_1\_1P9q/cp/ansible-ssh-%h-%p-%r” -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=c1340941 -o ConnectTimeout=10 host /bin/sh -c ‘mkdir -p /tmp/ansible-tmp-1437708704.47-93756423468950 && chmod a+rx /tmp/ansible-tmp-1437708704.47-93756423468950 && echo /tmp/ansible-tmp-1437708704.47-93756423468950’  
 PUT **/var/lib/awx/projects/transferTemp/roles/transfer\_role/files/transferTempScript.sh TO transferTempScript.sh**

The shell is being copied over to the user’s home directory, rather than in the /tmp/ansible… directory being created upon ssh in the first line. What could be causing this and where can I modify its configuration? I’ve already looked up the /etc/ansible/ansible.cfg and it appears fine. There are no other overriding configurations.

Any suggestion is greatly appreciated.

Regards

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 24, 2015, 4:05am UTC](https://forum.ansible.com/t/roles-files-remote-copy-configuration/18838/2 "2015-07-24T04:05:07Z")

</div>

This mailing list is for ansible the OSS project, for tower related  
issues please go to support.ansible.com or email support@ansible.com
