Incorrect dynamic script source link - AWS EC2

61 views
Skip to first unread message

Parth Patel

unread,
Dec 14, 2020, 6:16:09 AM12/14/20
to Ansible Project
HI Team,


Link to ec2 dynamic python inventory script, i see 404 not found error. Can anyone assist me please ?

Thanks,
Parth

Parth Patel

unread,
Dec 14, 2020, 6:19:18 AM12/14/20
to Ansible Project
Nor the link - https://github.com/ansible/ansible/tree/devel/contrib/inventory works which all users on youtube vedios and web blogs used. May be domain changed ? Neither raw github user content domain worked instead github.com in this URL.

Abhijeet Kasurde

unread,
Dec 14, 2020, 6:20:46 AM12/14/20
to ansible...@googlegroups.com
Hi Parth,

You are using docs which are not official docs. Also, EC2 external inventory script is replaced by aws_ec2 inventory plugin.




--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/013fa232-8804-4ff8-8f5f-8acdde17d6fcn%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Parth Patel

unread,
Dec 14, 2020, 6:24:03 AM12/14/20
to ansible...@googlegroups.com
Ahh okay thanks buddy. So below link is official ansible doc site right ?

https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html

Thanks,
P



Abhijeet Kasurde

unread,
Dec 14, 2020, 6:29:57 AM12/14/20
to ansible...@googlegroups.com

Abhijeet Kasurde

unread,
Dec 14, 2020, 6:30:46 AM12/14/20
to ansible...@googlegroups.com
--
Thanks,
Abhijeet Kasurde

Parth Patel

unread,
Dec 14, 2020, 6:35:04 AM12/14/20
to Ansible Project
Has script been tested and working fine ? I am getting syntax error.

[ansible@ip-172-3xxxx dynamic_inventory]$ chmod 755 ec2.py
[ansible@ip-172-3xxxx dynamic_inventory]$ ./ec2.py
./ec2.py: line 4: syntax error near unexpected token `('
./ec2.py: line 4: `from __future__ import (absolute_import, division, print_function)'


Abhijeet Kasurde

unread,
Dec 14, 2020, 8:04:40 AM12/14/20
to ansible...@googlegroups.com
Hi Parth,

1. Where did you get ec2.py?
2. Why are you doing chmod ?


On Mon, Dec 14, 2020 at 5:05 PM Parth Patel <parthpat...@gmail.com> wrote:
Has script been tested and working fine ? I am getting syntax error.

[ansible@ip-172-3xxxx dynamic_inventory]$ chmod 755 ec2.py?


--
Thanks,
Abhijeet Kasurde

Parth Patel

unread,
Dec 14, 2020, 8:07:56 AM12/14/20
to ansible...@googlegroups.com
Got script from link you gave of github.
For making script executable doing chmod. Isnt required ?? 

Ashok Das

unread,
Dec 14, 2020, 8:11:33 AM12/14/20
to Ansible Project

Parth Patel

unread,
Dec 14, 2020, 8:33:36 AM12/14/20
to ansible...@googlegroups.com
Ashok,

I tried as i have mentioned in below mail trail, getting 404 Not found error.

--
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 ansible-proje...@googlegroups.com.

Ashok Das

unread,
Dec 14, 2020, 8:38:40 AM12/14/20
to ansible...@googlegroups.com

Abhijeet Kasurde

unread,
Dec 14, 2020, 9:39:16 AM12/14/20
to ansible...@googlegroups.com
ec2.py is deprecated and it is based upon a deprecated version of boto.

Please use aws_ec2 as it is based upon the latest version of a boto and provides additional features.





--
Thanks,
Abhijeet Kasurde
Reply all
Reply to author
Forward
0 new messages