this may be helpful https://github.com/lorin/ansible-quickref/blob/master/ec2.rst#ec2-instance-dicts
On Thursday, October 24, 2013 at 12:43:36 AM UTC-4, Michael DeHaan wrote: > > I should point out our existing EC2 guide in the docs needs a *ton* of > work. > > It's on our list (likely something in the coming month or so), but I'd > also welcome those interested in contributing to the rst files in the > source tree that comprise it too. > > > > > On Wed, Oct 23, 2013 at 9:17 PM, Mark Casey <[email protected] > <javascript:>> wrote: > >> No worries, I genuinely lol'ed. >> >> Of course I found this right after I posted: >> http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html#instancedata-data-categories >> >> However I definitely prefer the native options you listed. Thanks for the >> tips! >> >> >> >> On Wednesday, October 23, 2013 11:10:45 PM UTC-5, Michael DeHaan wrote: >> >>> >>> You just need to run ansible-what-the-facts-say >>> >>> ansible what-the-facts-say ec2 --help >>> >>> Ring-ding-ding-ding-dingeringeding! >>> Gering-ding-ding-ding-dingeringeding! >>> Gering-ding-ding-ding-dingeringeding! >>> >>> Ok, that's totally not a thing and I apologize for meme insertion on the >>> list :) >>> >>> Yeah, it's not clear from the module source, I agree! One thing we want >>> to do for all modules is show a basic example of what they all return -- >>> that's pending. >>> >>> The super easy way to do this is call the module >>> >>> ansible hostname -m ec2_facts >>> >>> (or "setup" for the stock setup module) >>> >>> Yes, they are all provided by the metadata server and then given the >>> "ansible_" prefix. >>> >>> You can also just run the playbook with -v and see all the output. >>> >>> The ec2 dynamic inventory plugin also provides some useful variables. >>> >>> You can watch this by >>> >>> ./ec2.py --list >>> >>> ./ec2.py --host hostname >>> >>> >>> >>> >>> On Wed, Oct 23, 2013 at 8:59 PM, Mark Casey <[email protected]> wrote: >>> >>>> I've been looking around for a while now but unlike ec2.py which lists >>>> a lot of what information it returns at the top of the file, I have no >>>> idea >>>> where to find a list of what facts ec2_facts actually provides. >>>> >>>> Looking at the source, not even the example of >>>> ansible_ec2_instance_type appears anywhere else in the source, so I don't >>>> think looking there will illuminate what is available. I'm assuming its >>>> pulling them all in and just bulk-renaming them? >>>> >>>> Any insights appreciated! >>>> >>>> Thank you, >>>> Mark >>>> >>>> -- >>>> 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]. >>>> >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> >>> >>> -- >>> Michael DeHaan <[email protected]> >>> >>> CTO, AnsibleWorks, Inc. >>> http://www.ansibleworks.com/ >>> >>> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Michael DeHaan <[email protected] <javascript:>> > CTO, AnsibleWorks, Inc. > http://www.ansibleworks.com/ > > -- 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/950553d1-2576-4745-91f0-a77537ab7e04%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
