# EC2 multiple ssd volumes

**URL:** <https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627>\
**Category:** Ansible Project\
**Created:** [June 1, 2017, 7:38pm UTC](https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627 "2017-06-01T19:38:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_skaggs1](https://avatars.discourse-cdn.com/v4/letter/e/258eb7/32.png) [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Post date:** [June 1, 2017, 7:38pm UTC](https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627/1 "2017-06-01T19:38:11Z")

</div>

ansible 2.3.0.0

I’m trying to create multiple ec2 volumes on a single instances. I’ve tried the following variations:volumes:

- device\_name: /dev/xvda  
volume\_type: gp2  
volume\_size: 40  
delete\_on\_termination: true
- device\_name: /dev/xvdb  
volume\_type: ephemeral  
volume\_size: 120  
delete\_on\_termination: true  
encrypted: true  
ephemeral: ephemeral0

volumes:

- device\_name: /dev/xvda  
volume\_type: gp2  
volume\_size: 40  
delete\_on\_termination: true
- device\_name: /dev/xvdb  
volume\_type: gp2l  
volume\_size: 120  
delete\_on\_termination: true  
encrypted: true  
ephemeral: ephemeral0

volumes:

- device\_name: /dev/xvda  
volume\_type: gp2  
volume\_size: 40  
delete\_on\_termination: true  
ephemeral: ephemeral0
- device\_name: /dev/xvdb  
volume\_type: ephemeral  
volume\_size: 120  
delete\_on\_termination: true  
encrypted: true  
ephemeral: ephemeral1

and when I ssh onto the instances and run lsblk only the root volume is there. There has to be a way to mount ‘local’ ssd to the ec2 instances.

---

<div class="post-metadata">

**Author:** ![eric\_skaggs1](https://avatars.discourse-cdn.com/v4/letter/e/258eb7/32.png) [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Post date:** [June 1, 2017, 9:45pm UTC](https://forum.ansible.com/t/ec2-multiple-ssd-volumes/24627/2 "2017-06-01T21:45:14Z")

</div>

I’m trying to add an instance storage type as one of the drives.
