# create NFS share on AWS storage gateway with ansible

**URL:** <https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [August 24, 2021, 4:06pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669 "2021-08-24T16:06:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [August 24, 2021, 4:06pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/1 "2021-08-24T16:06:16Z")

</div>

does anyone know if there isa module to create nfs shares on aws storage gateway with ansible?

I cannot find in the docs. only s3 buckets and ec2

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [August 25, 2021, 12:24pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/2 "2021-08-25T12:24:10Z")

</div>

any body know?

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [August 28, 2021, 12:20pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/3 "2021-08-28T12:20:40Z")

</div>

is ansible not able to create NFS share on aws storage gateway??

---

<div class="post-metadata">

**Author:** ![Antony\_Stone](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Post date:** [August 28, 2021, 12:59pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/4 "2021-08-28T12:59:59Z")

</div>

Do you know how to do this manually? If there is a command you can run to  
achieve what you want, then ansible can do it.

Antony.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [August 28, 2021, 1:09pm UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/5 "2021-08-28T13:09:42Z")

</div>

yes I can do it manually via aws cli command but how to do it with ansible?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 29, 2021, 6:27am UTC](https://forum.ansible.com/t/create-nfs-share-on-aws-storage-gateway-with-ansible/35669/6 "2021-08-29T06:27:42Z")

</div>

What I end up doing in some corner cases is just issue an aws cli command using the ‘command’ module and make sure the output is json to help with further processing
