i have solved it by changing

     - "./files/id_rsa"

to

     - "files/id_rsa"

Not sure why the behavior differs between "with_first_found" and 
"with_items"

On Friday, March 27, 2015 at 3:01:50 PM UTC, ansible_user wrote:
>
> 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
>

-- 
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/cc24a666-0f33-4511-88f2-252cb58406a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to