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.
For more options, visit https://groups.google.com/d/optout.