Hi
I’m trying to automate creating and destroying our staging environment. So far, I have a playbook to create the cluster:
`
Hi
I’m trying to automate creating and destroying our staging environment. So far, I have a playbook to create the cluster:
`
I’m doing this by registering the results of the ec2 provisioning task and then cycle through the hosts in a subsequent task for creating the dns records.
Thanks for the reply, Dan. Do you have the code available somewhere?
On the run now but will share this later.
Btw, are you really missing the task of allocating the EIPs to the instances? This would go before the route53 task.
Dan.
Hope you can get some inspiration from here: https://github.com/danvaida/Atlassian-Stash-Ansible/blob/master/ec2.yml
Thanks a bunch, Dan. That is helpful. My instances are all VPC instances and I use ELB for all of them so just the private IP works fine for it.