HI Kai, thanks for your feedback. I referred to the 
docs: 
https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html.
 
Is it correct?

Guimin He

在 2018年10月23日星期二 UTC+8下午2:19:45,Kai Stian Olstad写道:
>
> On 23.10.2018 03:42, [email protected] <javascript:> wrote: 
> > When I run the following command in the directory 
> > ansible/contrib/inventory 
> > 
> > ansible -i ec2.py all -m ping 
> > 
> > and I got the following error: 
> > 
> > [WARNING]:  * Failed to parse 
> > /Users/hehe/Projects/python/ansible/contrib/inventory/ec2.py with ini 
> > plugin: 
>
> Ansible is trying to read the content instead of executing the script 
> because of missing execution bit. 
> So you need to set the execution bit on ec2.py to make it work. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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/aff66e11-8437-4238-a7e0-7d50dd31964c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to