Sure you can run powershell.exe directly with raw/shell/command as the
executable but as I mentioned the localhost on WSL refers to the Linux
host. The only way to run the Windows PowerShell modules is to target the
host through winrm/psrp so the remote host is on the Windows side.
On Thursday,
I can run powershell in wsl and i can run
raw: powershell.exe on ansible
my problem is that win packages are just not working altogether
A quarta, 28/06/2023, 16:50, John Petro escreveu:
> If I am reading the output correctly, it looks like it can't find
> powershell. have you tried running a
Localhost on the WSL side is the WSL Linux host itself and not the Windows
one. Unfortunately you still need to target your Windows localhost using
the winrm or psrp connection type.
Thanks
Jordan
On Thursday, June 29, 2023 at 1:50:54 AM UTC+10 John Petro wrote:
> If I am reading the output co
If I am reading the output correctly, it looks like it can't find
powershell. have you tried running a powershell command in WSL to see if
you get that expected output?
--John
On Wed, Jun 28, 2023 at 11:40 AM Filipe Gonçalves <
filipe.pereira@gmail.com> wrote:
> ### Summary
>
> When running
### Summary
When running a simple playbook that uses the ansible.windows.* module(i've
tested some ansible.windows, not all) it always fails on runtime, I'm using
WSL1 on Windows 10, so I imagine it is because it is recognizing localhost
as the wsl virtual machine and not my windows machine, I'