It depends on how you want to approach this.
1st approach: You can use the ec2.py inventory generator
2nd approach: You can write Ansible Filters to get inventory dynamically
during the same playbook run. Here is an example of Filter that I have
written for AWS <https://github.com/linuxdynasty/ld-ansible-filter-plugins>.
On Tue, Oct 11, 2016 at 5:17 PM, 'John Smith' via Ansible Project <
> I have an ansible playbook that starts up some aws instances. once they
> are up I can see the instances have
> public ip and private ip.
> is there a way I can programmatically get the ip addresses from outside
> aws cliud instead of of having to look at the aws console ?
> I want my application (teamcity, run on linux) outside of aws to call
> the ansible playbook, start up the instances, then when
> they are up I need a way to go get the ip addresses of the instances that
> have been brought up in aws.
> has anyone done anything like this ?
> 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-project+unsubscr...@googlegroups.com.
> To post to this group, send email to firstname.lastname@example.org.
> To view this discussion on the web visit https://groups.google.com/d/
> For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to email@example.com.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.