windows two hop network access issue

38 views
Skip to first unread message

mike od

unread,
Nov 9, 2015, 11:07:31 AM11/9/15
to Ansible Project

I’m trying to run the script module with Kerberos auth on windows to call a powershell script that includes Add-DhcpServerv4Reservation and Add-DnsServerResourceRecord. 

If I set ANSIBLE_KEEP_REMOTE_FILES=1 I can log onto the host and execute the scrip locally with no issue but when using Ansible/winrm it doesn’t have the network access for the second hop to the domain controllers so I get permission denied.


Anyone have an example of passing credentials directly in a ps1?   Credssp seems to require a ComputerName but I want to execute these commands on the server that ansible has already connected too.


Thanks,

Mike



Trond Hindenes

unread,
Nov 9, 2015, 2:07:02 PM11/9/15
to Ansible Project
Kerberos will have problems with this. You may switch to basic creds, that will probably work.
Reply all
Reply to author
Forward
0 new messages