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] => 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:

[email protected]> 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
[email protected]>

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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0651678a-366f-4ad5-8b92-9f094bb7ec0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to