# copy module with\_first\_found strange behavour

**URL:** <https://forum.ansible.com/t/copy-module-with-first-found-strange-behavour/17858>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [March 27, 2015, 2:59pm UTC](https://forum.ansible.com/t/copy-module-with-first-found-strange-behavour/17858 "2015-03-27T14:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansible\_user2](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@ansible\_user2](https://forum.ansible.com/u/ansible_user2)\
**Post date:** [March 27, 2015, 2:59pm UTC](https://forum.ansible.com/t/copy-module-with-first-found-strange-behavour/17858/1 "2015-03-27T14:59:52Z")

</div>

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
