# Use Ansible to copy files to Windows NFS

**URL:** <https://forum.ansible.com/t/use-ansible-to-copy-files-to-windows-nfs/35759>\
**Category:** Ansible Developer\
**Tags:** windows, rhel\
**Created:** [September 20, 2021, 1:46pm UTC](https://forum.ansible.com/t/use-ansible-to-copy-files-to-windows-nfs/35759 "2021-09-20T13:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user29032902](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/user29032902/32/228_2.png) [@user29032902](https://forum.ansible.com/u/user29032902)\
**Post date:** [September 20, 2021, 1:46pm UTC](https://forum.ansible.com/t/use-ansible-to-copy-files-to-windows-nfs/35759/1 "2021-09-20T13:46:59Z")

</div>

**Overview:**

I have an Ansible node that has a number of files on it. I would like to copy those files over to a remote Network File Share (NFS). I’m trying to limit the number of Windows computers we WinRM into, and so would prefer (if possible) not to need to WinRM to a Windows machine in order to copy the file. Ideally, I would like to be able to copy the file directly from the RHEL Ansible node to the Windows NFS. I say “Windows NFS” but really it is a NAS protected using Active Directory authentication.

**Questions:**

1. Is it possible to use Ansible to copy from a Linux machine to an NFS (i.e. Windows, Nas, etc.)?
2. Does it matter that the NFS is protected with Active Directory? Must I use some other credentials, or can I use an AD-based username/password?

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [September 22, 2021, 10:26am UTC](https://forum.ansible.com/t/use-ansible-to-copy-files-to-windows-nfs/35759/2 "2021-09-22T10:26:12Z")

</div>

try mounting the nfs with [mount](https://docs.ansible.com/ansible/mount_module.html) and then copy the file.
