Host not found error while executing copy module

11 views
Skip to first unread message

Diwaakartg Ganesh

unread,
Nov 10, 2015, 5:20:48 AM11/10/15
to Ansible Project
Ansible version :1.9.4, 1.9.3, 1.9.1,

Using ec2, so specifying pem key in ansible. Cfg

I have used ansible for while,  but this error is strange. 

Copy module works fine when executing in ad-hoc like the snippet below. 
The below line is just an example. 

    Ansible instance123 -m copy - a "src= dest= mode =" 

But gives "host not found" while executing the same module in playbook. 

I checked command module both in playbooks and trying it in ad-hoc also. That works fine. 
I found that version 1.8.2 had this error,  and I tried all state versions of 1.9

I find this strange, any help appreciated. 
Reply all
Reply to author
Forward
0 new messages