# ec2\_vol and windows hosts

**URL:** <https://forum.ansible.com/t/ec2-vol-and-windows-hosts/28423>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 26, 2018, 5:38pm UTC](https://forum.ansible.com/t/ec2-vol-and-windows-hosts/28423 "2018-08-26T17:38:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruce\_Affonso](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Bruce\_Affonso](https://forum.ansible.com/u/Bruce_Affonso)\
**Post date:** [August 26, 2018, 5:38pm UTC](https://forum.ansible.com/t/ec2-vol-and-windows-hosts/28423/1 "2018-08-26T17:38:29Z")

</div>

Hi,

I know how to use ec2\_vol to mount a drive to a Windows host. Are there and Ansible options or modules available that then allow that drive to be set online, initialized and formatted or do we need to use powershell commands?

Thanks,

Bruce

---

<div class="post-metadata">

**Author:** ![John\_Roh](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@John\_Roh](https://forum.ansible.com/u/John_Roh)\
**Post date:** [August 27, 2018, 3:21am UTC](https://forum.ansible.com/t/ec2-vol-and-windows-hosts/28423/2 "2018-08-27T03:21:37Z")

</div>

Have you used to packer to build an AMI? I use packer option to build and to attach ec2 volumes, [https://www.packer.io/docs/builders/amazon-ebs.html#ami\_block\_device\_mappings](https://www.packer.io/docs/builders/amazon-ebs.html#ami_block_device_mappings).

John.
