copy module with_first_found strange behavour

24 views
Skip to first unread message

ansible_user

unread,
Mar 27, 2015, 11:01:50 AM3/27/15
to ansible...@googlegroups.com
i have the following:


-  copy: src={{ item }} dest="/var/lib/one/.ssh/id_rsa" owner=oneadmin group=oneadmin mode=0600
   with_first_found:
     - "./files/id_rsa"

This  creates "/var/lib/one/.ssh/id_rsa/files/" folder at the destination instead of copying the file. If i use "with_items" instead of "with_first_found" it behaves normally.

is this a bug? im running latest ansible 1.9.0.1 and the destination server is ubuntu 14.04

thanks
Reply all
Reply to author
Forward
Message has been deleted
0 new messages