copy module with_first_found strange behavour

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