It is definitely possible but you will probably be coming up with other 
errors because you either need to use CredSSP, Kerberos with credential 
delegation, become, or psexec to install SQL Server.

For the case around running a powershell script I would try the following

- win_command: PowerShell.exe -ExecutionPolicy Bypass -File 
C:\temp\sql-setup.ps1

This will give you the full output in the stdout and stderr which you can 
use to help debug what is happening. Unfortunately psexec does not keep 
track of the stdout/stderr so it is hard to tell what may be happening 
there.

Thanks

Jordan

-- 
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/1715d7ba-79da-45cc-b953-95a7f66c1c0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to