I actually found that by specifying the volume as /dev/sda instead of 
/dev/sda1, it enables the "delete_on_termination" flag for the primary 
volume.


On Monday, November 3, 2014 1:55:11 AM UTC-8, Carlos V wrote:
>
> Hello all,
> I've been experimenting with the Ansible ec2 modules and I'm looking for a 
> way to set the default volume created to have the "delete on termination" 
> option set.
>
> I found these volume options:
>
>         volumes:
>           - device_name: /dev/sda1
>             volume_size: 512
>             delete_on_termination: true
>
>
> but this seems to create a secondary volume and only that one is set to 
> delete on termination. How can I do the same thing for the volume created 
> with the instance? I don't want a secondary volume in this case.
>
> Any help is appreciated, thanks!
>

-- 
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/4bd82a37-a258-41e6-ac54-0115ffde62e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to