Iam trying to run the below simple playbook in ansible in windows 10
through ubuntu installed.
But Iam getting error as "module_stderr": "/bin/sh: 1: powershell: not
found\n", "module_stdout":
Please let me know how to resolve this issue.
- name: Run Powershell Scripts
hosts: localhost
tasks:
- name: Run powershell script
win_command: pwsh.exe -ExecutionPolicy ByPass -File
C:/temp/Firstpowershellscript.ps1
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d7c0f783-f658-4f36-9d1b-5046fcba11ce%40googlegroups.com.