I assume you have referenced eni.interface.id because you've seen the example? Note the code above that which contains a register statement. This allows you to reference output from that command. See http://docs.ansible.com/playbooks_variables.html for more on that.
Once you've used that register command you can reference all the values of the ENI creation. If you're still having issues, post your playbook as it stands and any errors you're getting. On Thursday, April 23, 2015 at 5:14:35 AM UTC+3, Rob White wrote: > > The latest commit has added support for delete_on_termination and > source_destination_check. Please test and let me know how it goes. > Can you please give a full example of attaching an interface and setting the delete_on_termination? Not sure how to extract the eni.interface.id for the second. Should I use it as part of a local_action, like I do for ec2_tag? Sorry for the naive questions, I'm relativity new to Ansible. > > If you'd like to leave any comments regarding the module, there's a PR > here https://github.com/ansible/ansible-modules-extras/pull/410 > > Rob White > Email: [email protected] > Mobile (Australia): +61 410 700 733 > Mobile (UK): +44 7527 895 226 > Skype: robwhite83 > > On 22 April 2015 at 17:46, Tzach Livyatan <[email protected]> > wrote: > >> >> >> On Tuesday, April 21, 2015 at 3:25:31 PM UTC+3, Rob White wrote: >>> >>> Unfortunately you wouldn't be able to create the interface with this >>> attribute. Boto doesn't support it. You'd have to create the interface and >>> then immediately modify it. >>> >>> Would this be acceptable? >>> >> Yes, this is what I'm doing now. >> >> >> >>> On 21 Apr 2015 19:23, "Tzach Livyatan" <[email protected]> >>> wrote: >>> >>>> Hi Rob >>>> Thanks for module! >>>> I was just looking for something like this. >>>> >>>> One thing I'm missing is the ability to set the deleteOnTermination >>>> attribute to True. >>>> Something like >>>> connection.modify_network_interface_attribute(network_interface.id,' >>>> deleteOnTermination',True, attachment_id=network_interface.attachment. >>>> id) >>>> >>>> >>>> >>>> On Wednesday, April 15, 2015 at 10:52:19 AM UTC+3, Rob White wrote: >>>>> >>>>> Hi guys, >>>>> >>>>> Recently had this requirement myself. >>>>> >>>>> I've written a module here >>>>> https://github.com/wimnat/ansible-modules-extras/blob/feature/ec2_eni/cloud/amazon/ec2_eni.py >>>>> >>>>> I'd appreciate testing / feedback and if all good I'll submit a PR to >>>>> ansible-modules-extras >>>>> >>>>> Thanks, >>>>> >>>>> On Tuesday, 6 January 2015 09:37:10 UTC+11, Igor Cicimov wrote: >>>>>> >>>>>> +1 for this request. Have you seen this module though: >>>>>> https://github.com/cybosol/ansible/blob/master/library/cloud/ec2_eni >>>>>> haven't tried it my self but maybe it can help. >>>>>> >>>>>> On Saturday, January 3, 2015 11:29:13 AM UTC+11, Jeff wrote: >>>>>>> >>>>>>> Someone asked for this >>>>>>> <https://github.com/ansible/ansible/issues/7895> a while back >>>>>>> before the modules were reorganized, but I've seen no mention since, so >>>>>>> I'm >>>>>>> guess it's still not possible to create (or manipulate) an Elastic >>>>>>> Network Interface (eni) >>>>>>> <http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html> on >>>>>>> an EC2 instance yet. That being the case, since this is supported by >>>>>>> boto >>>>>>> (create_network_interface >>>>>>> <http://boto.readthedocs.org/en/latest/ref/ec2.html#boto.ec2.connection.EC2Connection.create_network_interface>), >>>>>>> is it possible for me to make my own calls via boto somehow? I'm not >>>>>>> very >>>>>>> deep into Ansible so perhaps this is a nonsensical question. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Ansible Project" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/ansible-project/-mFNN63kLrE/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, 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/11088c05-9f70-40fe-90c7-a7384bb18314%40googlegroups.com >>>> <https://groups.google.com/d/msgid/ansible-project/11088c05-9f70-40fe-90c7-a7384bb18314%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 a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/-mFNN63kLrE/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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/4edb9bcf-b592-40ff-8894-f05f0b51be4b%40googlegroups.com >> <https://groups.google.com/d/msgid/ansible-project/4edb9bcf-b592-40ff-8894-f05f0b51be4b%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 a topic in the Google Groups "Ansible Project" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/-mFNN63kLrE/unsubscribe. To unsubscribe from this group and all its topics, 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/cb7a0591-1bbb-4e98-8864-f7275c9c7301%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/cb7a0591-1bbb-4e98-8864-f7275c9c7301%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/CA%2Bwe3KQ2ZB1TyspjTHvX_MLTHPugeOxM6Nk%2BivkaU-00Zv5RQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
