Access a Windows fileshare with Ansible

Posted by

Using credentials in a PowerShell script over WinRM is not always possible if you cannot use Kerberos delegation. For this cases you can use “Credential Security Provider (CredSSP)” authentication. With this protocol its is possible to share credentials with a target machine. This is what they call “Multi-hop” support. Enabeling this protocol lets you access fileshares on other computers.

Using win_copy from a Windows File share with Ansible

So for everyone who is struggling how to access file-shares on a Windows server with ansible. Iam using WinRM CredSSP. The following code is working on my environment:

Leave a Reply

Your email address will not be published. Required fields are marked *