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



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dfc069dc-e6d9-4990-8a10-4c86c0998476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to