Use Ansible to copy files to Windows NFS

18 views
Skip to first unread message

Timothy Dilbert

unread,
Sep 20, 2021, 9:46:59 AM9/20/21
to Ansible Development

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?


rajtheco...@gmail.com

unread,
Sep 22, 2021, 6:26:12 AM9/22/21
to Ansible Development
try mounting the nfs with mount and then copy the file.
Reply all
Reply to author
Forward
0 new messages