"Yes, I wrote this precisely because the inventory plugin didn't suit my
needs"

The problem here is Ansible is trying to serve *everyone's* needs.  If it
becomes a conglomeration of 500-ways-to-do-something, we quickly get into a
lot of sprawl.

"I need to check to see if the instance exists; if not, I create it using a
base AMI in a particular VPC"

The exact_count parameter in 1.5 would be a good choice here.    There's
also a pull request to configure autoscaling groups (set the size to 1).

It also seems like you could just use the ec2_ami module, aminator, or
Packer.






On Sat, Mar 8, 2014 at 6:37 PM, Scott Anderson <[email protected]>wrote:

> On Mar 8, 2014, at 6:27 PM, Michael DeHaan <[email protected]>
> wrote:
>
> > This feels like it belongs in the inventory plugin, so it is automatic,
> can you expand on thoughts?
>
> Yes, I wrote this precisely because the inventory plugin didn't suit my
> needs. The inventory module only works for existing instances.
>
> I create a maintenance instance on the fly for burning AMIs. I need to
> check to see if the instance exists; if not, I create it using a base AMI
> in a particular VPC, then configure the instance with whatever roles I need
> (web, monitoring, syslog, etc) by passing the newly created host IP to
> add_host. Finally, I burn an AMI from the instance and shut it down.
>
> Regards,
> -scott
>
> --
> 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/46DB77FF-ED03-4F64-986D-28D00EF06AEC%40gmail.com
> .
> 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 [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/CAEVJ8QOg2_z%3DcMe1LavwUvDSaY9aae0W3u_2nRduGyVrhtoOnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to