3
votes

I was checking this documentation https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#inventory-script-example-aws-ec2

and found that EC2 dynamic inventory is not available in github repo and other inventories are also not available. https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py

There is no information in Ansible release notes or anywhere. Even looks like documentation is also not up-to-date. Please share if anyone has any information about this.

2

2 Answers

2
votes

Yes, official documentation is not updated and the links are resulting in 404. I just checked official Ansible repository on Github and found that required folder is not present in "devel" branch.

However, you can still get the required ec2.py and ec2.ini files from "stable" branches.

https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/ec2.ini https://github.com/ansible/ansible/blob/stable-2.9/contrib/inventory/ec2.py