# ansible 1.9.0.1 mistakenly reports "Input file not found" while using copy module

**URL:** <https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061>\
**Category:** Ansible Project\
**Created:** [April 23, 2015, 4:03pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061 "2015-04-23T16:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.ansible.com/u/nicolas)\
**Post date:** [April 23, 2015, 4:03pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061/1 "2015-04-23T16:03:00Z")

</div>

Hello,

I have the following task in a ply-book:

- name: Copy  
copy: src={{ dl\_folder }}/{{ dl\_filename }} dest={{ dl\_folder }}/testdir  
sudo: yes  
when: download\_file.stat.exists == true  
register: file\_copy

The file exists as validated by the when clause. However, the error message is:

TASK: [linkysas\_config/domain/pre-requisites | Copy] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [[gate0505.distribution.edf.fr](http://gate0505.distribution.edf.fr)] =\> input file not found at /logiciels/tmp/deploy-toolbox-1.9.0.tar or /logiciels/tmp/deploy-toolbox-1.9.0.tar

FATAL: all hosts have already failed – aborting

which is not true because the file exists as shown below:

[CB1791DN@gate0505.distribution.edf.fr](mailto:CB1791DN@gate0505.distribution.edf.fr)\> sudo ls -l /logiciels/tmp  
Mot de passe de CB1791DN:  
total 1059640  
-rwxrwxrwx 1 root root 9697280 Apr 23 17:59 deploy-toolbox-1.9.0.tar  
-rwxrwxrwx 1 root root 1075362983 Apr 14 16:22 svr\_weblogic-server.12.1.3\_linux\_rhe5-rhe6\_n1-n3^1.0.sh  
drwxrwxrwx 2 root root 4096 Apr 23 17:03 testdir  
[CB1791DN@gate0505.distribution.edf.fr](mailto:CB1791DN@gate0505.distribution.edf.fr)\>

I searched a lot but didn’t find anything. What the problem might be as I cannot beleive I’m the only one having it.

Kind regards,

Nicolas

---

<div class="post-metadata">

**Author:** ![Yassen\_Damyanov](https://avatars.discourse-cdn.com/v4/letter/y/9fc29f/32.png) [@Yassen\_Damyanov](https://forum.ansible.com/u/Yassen_Damyanov)\
**Post date:** [April 23, 2015, 6:42pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-mistakenly-reports-input-file-not-found-while-using-copy-module/18061/2 "2015-04-23T18:42:36Z")

</div>

Nicolas, how about running the playbook with -vvvv for maximum verbosity and check the output?  
Y.
