Failling to create ec2 root volume with indicated size on spinning up instnce

82 views
Skip to first unread message

Joseph Djomeda

unread,
Sep 4, 2015, 12:47:43 PM9/4/15
to Ansible Project
Hello All,

I have been struggling with the past 3 hours trying to figure out why my ubuntu ec2 instances are not been created with the specified volume size.
I have been following the documentation  http://docs.ansible.com/ansible/ec2_module.html .
The only difference in there is that it looks to reattach an existing snapshot of a EBS block.

My example is here on pastie http://pastie.org/10396629

I have tried using device_name like sda or xvda1 but no change.

Is it possible to actually specify the size of the ec2 instance root volume with ansible ec2 module?

Can anyone help?

Best Regards,
--
Joseph Kodjo-Kuma Djomeda
check out my pains at : www.mycodingpains.com
We become what we think about ourselves........

Joseph Djomeda

unread,
Sep 6, 2015, 6:58:39 AM9/6/15
to Ansible Project
Hello

Anybody ?

Thanks

Joseph Djomeda

unread,
Sep 8, 2015, 4:57:26 AM9/8/15
to Ansible Project
Hello All,

I am totally desperate right now. Any help would be greatly appreciated. it Looks like this is something I am doing in a wrong way.

Best Regards,

Brian Coca

unread,
Sep 8, 2015, 8:55:39 AM9/8/15
to Ansible Project
This does not seem to be possible right now, you can specify the size
of additional volumes but not resize the default root volume from ec2
instance creation.
A workaround is to create an ami with a root volume with the required size.
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKDXoaK%2BXNkXoHmfq6UQabPcutPxN9nnoZ0_x4pEv7aSH_5J%2Bg%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Joseph Djomeda

unread,
Sep 8, 2015, 10:48:42 AM9/8/15
to Ansible Project
Thank you Brian for the Clarification

Best Regards,


For more options, visit https://groups.google.com/d/optout.
--
Reply all
Reply to author
Forward
0 new messages