# volume\_size parameter ignored in ec2 module

**URL:** <https://forum.ansible.com/t/volume-size-parameter-ignored-in-ec2-module/20158>\
**Category:** Ansible Project\
**Created:** [January 8, 2016, 7:14pm UTC](https://forum.ansible.com/t/volume-size-parameter-ignored-in-ec2-module/20158 "2016-01-08T19:14:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eli\_Finkelshteyn](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Eli\_Finkelshteyn](https://forum.ansible.com/u/Eli_Finkelshteyn)\
**Post date:** [January 8, 2016, 7:14pm UTC](https://forum.ansible.com/t/volume-size-parameter-ignored-in-ec2-module/20158/1 "2016-01-08T19:14:31Z")

</div>

Hey Folks,  
I’ve been banging my head against this for a few days with no luck. I’m trying to change the size of my default disk (/dev/xvda1) when spinning up new ec2 boxes with Ansible. I have the following:

`

- name: provision new boxes

hosts: localhost

gather\_facts: False

tasks:

- name: Provision a set of instances

ec2:

group: “{{ aws\_security\_group }}”

instance\_type: “{{ aws\_instance\_type }}”

image: “{{ aws\_ami\_id }}”

region: “{{ aws\_region }}”

vpc\_subnet\_id: “{{ aws\_vpc\_subnet\_id }}”

key\_name: “{{ aws\_key\_name }}”

wait: true

count: “{{ num\_machines }}”

instance\_tags: “{{ tags }}”

volumes:

- device\_name: /dev/sda1

volume\_size: 15  
register: ec2  
`

Which should set my root device size to 15g. Instead, it just gets ignored and the root device is set to the default 8. What am I doing wrong?
