AHA! I found a work-around. I create the untagged volumes at the same time I create the instances with the ec2 module. But if I then go back and attempt to create the same volumes with the ec2_vol module using the same device names, it doesn't create or change the volumes, but it *does* give me back a result with all the volume IDs. I can then use the IDs to create my tags.
Messy, but it gives me what I want. On Tuesday, April 7, 2015 at 9:28:20 AM UTC-4, James Cammarata wrote: > > Yep, that's it. Let us know if you have any further questions. > > Thanks! > > James Cammarata > Director, Ansible Core Engineering > github: jimi-c > > On Tue, Apr 7, 2015 at 8:25 AM, Brenda Bell <[email protected] > <javascript:>> wrote: > >> Thanks so much for the response. I'm new to Ansible, so what's the right >> way to open an issue? I assume I just submit it to the git projects ( >> https://github.com/ansible/ansible/issues), right? >> >> >> On Monday, April 6, 2015 at 5:04:42 PM UTC-4, James Cammarata wrote: >>> >>> Hi Brenda, this has come up before a few times (including from our own >>> QA testing team), but apparently we haven't opened an issue on it to date. >>> Feel free to do so, and we'll take a look at getting it resolved. It's >>> definitely been a problem in the past. >>> >>> Thanks! >>> >>> James Cammarata >>> Director, Ansible Core Engineering >>> github: jimi-c >>> >>> On Sat, Apr 4, 2015 at 10:00 AM, Brenda Bell <[email protected]> wrote: >>> >>>> The subject says what I'm trying to do. >>>> >>>> I first tried to create the instances with a volume dictionary, but >>>> that method doesn't let me tag the volumes. >>>> >>>> I then tried to first create the instances, then create the volumes and >>>> attach them, but that method doesn't let me set them to delete on >>>> termination. >>>> >>>> I finally attempted to create the instances one at a time with a volume >>>> dictionary, intending to loop through the volumes and tag them after the >>>> fact. But then I ran into the issue where I'm unable to invoke my >>>> create-one-instance include in a with_sequential loop. >>>> >>>> What am I missing? Or is there simply not a way to do 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 [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/5116a833-b58a-4f4a-b285- >>>> 658b58183070%40googlegroups.com >>>> <https://groups.google.com/d/msgid/ansible-project/5116a833-b58a-4f4a-b285-658b58183070%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/ee58a0cd-58bf-4a71-98ad-85c9dffe3755%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/ee58a0cd-58bf-4a71-98ad-85c9dffe3755%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> 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/a00ef993-ddbd-42a3-98d4-cad647c85114%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
