Hey all, I'm trying to use the EC2 module to start/stop instances, but I don't have the specific IDs ahead of time. I've been trying to get it to run one task to grab the IDs from the EC2 inventory, and one to actually run the command on localhost, but I can't seem to find a way to match both. I either get "no hosts match" (when I use a [local] inventory) or I cannot find localhost when using the ec2 inventory.
Is there an example anywhere of collecting ec2 instance ids and reusing them? -- 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/f2bcb7c8-c72c-44cd-833b-ed15d1529c54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
