Hi all,

Thanks for reading my question. I have successfully created gp2 root volume
by changing "volume_type: gp2" to "device_type: gp2" . (Not sure why it
works. manual says that device_type is deprecated)

The below yaml works

  - name: Launch the new EC2 Instance
    ec2:
      group: '{{ security_group }}'
      instance_type: '{{ instance_type}}'
      image: '{{ image }}'
      wait: true
      region: '{{ region }}'
      vpc_subnet_id: '{{ vpc_subnet_id }}'
      keypair: '{{ keypair }}'
      count: '{{count}}'
      volumes:
        - device_name: /dev/sda1
          device_type: gp2
          volume_size: 8
    register: ec2

Regards,
Abey

On Wed, Oct 28, 2015 at 4:04 PM, Stephen Granger <[email protected]> wrote:

> Would this depend on the AMI being used having a root ssd volume?
>
> I'm unsure of this and would be happily corrected.
>
> On 27 October 2015 at 09:10, Abey Thomas <[email protected]> wrote:
>
>> Hi ,
>>
>> I am trying to create EC2 instances using ansible module ec2 and the root
>> volume gets created as "standard". I would like that to be "gp2"
>>
>> Below is the play that I am using
>>
>>     - name: Launch the new EC2 Instance
>>     ec2:
>>       group: '{{ security_group }}'
>>       instance_type: '{{ instance_type}}'
>>       image: '{{ image }}'
>>       wait: true
>>       region: '{{ region }}'
>>       vpc_subnet_id: '{{ vpc_subnet_id }}'
>>       keypair: '{{ keypair }}'
>>       count: 20
>>       volumes:
>>         - device_name: /dev/sda1
>>           volume_type: gp2
>>           volume_size: 10
>>     register: ec2
>>
>>
>> I can create gp2 volumes using ec2_vol and attach to EC2, however I would
>> like my root volume to be gp2. I can create EC2 root volume using AWS
>> console from the same AMI.
>>
>> Is it possible to use gp2 for root volumes ?
>>
>> Thanks,
>> Abey
>>
>> --
>> 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/d4f92299-c3a6-4102-b9b5-45f58146d83b%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/d4f92299-c3a6-4102-b9b5-45f58146d83b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Steve
>
> --
> 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/e0QVgvbuuWs/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/CA%2BemtquaesyFensFAhO-AR_sLXKXSwfbzTX%3Dra2iKC%3Dq93Cy3w%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2BemtquaesyFensFAhO-AR_sLXKXSwfbzTX%3Dra2iKC%3Dq93Cy3w%40mail.gmail.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/CAJ4mmRAcWq-4ixV18hrAJGusJafVBX6qZoBNUYietfOES2VT%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to