diff --git a/plugins/modules/win_shell.py b/plugins/modules/win_shell.py index 271ed79d..305115c2 100644 --- a/plugins/modules/win_shell.py +++ b/plugins/modules/win_shell.py @@ -111,8 +111,8 @@ args: stdin: Input message -- name: Run a command with "no_profile" - ansible.windows.win_shel: C:\somescript.ps1 +- name: Run a PowerShell script with -NoProfile + ansible.windows.win_shell: C:\somescript.ps1 args: no_profile: true '''