I'm seeing some references online that make it sound like the ansible "raw" module when run versus windows hosts (winrm) should allow execution of powershell commands -- I'm able to execute raw: commands with the older windows shell (batch file syntax) -- but don't seem to be able to use any powershell utilities ...
<sts-m93p-automaton.ucsd.edu> ESTABLISH WINRM CONNECTION FOR USER: ansible on PORT 5986 TO sts-m93p-automaton.ucsd.edu <sts-m93p-automaton.ucsd.edu> WINRM CONNECT: transport=plaintext endpoint= https://sts-m93p-automaton.ucsd.edu:5986/wsman <sts-m93p-automaton.ucsd.edu> EXEC Get-Item c: <sts-m93p-automaton.ucsd.edu> WINRM EXEC 'Get-Item' ['c:'] <sts-m93p-automaton.ucsd.edu> WINRM RESULT <Response code 1, out "", err "'Get-Item' is not re"> failed: [sts-m93p-automaton.ucsd.edu] => {"rc": 1} stderr: 'Get-Item' is not recognized as an internal or external command, operable program or batch file. Is there something that needs to be done for the raw module to allow execution of powershell snippets? If anyone has any advice I'd be appreciative! Thanks, -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABUBibu7pF_vimT1%3DVXQmBSBB8eN1sMuxKnsNNv4%3D%3Do3%2Bo4jXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.