Skip to content

Commit

Permalink
Update win_shell.py (#585)
Browse files Browse the repository at this point in the history
* Update win_shell.py

* Update plugins/modules/win_shell.py

After sugestion of @jborean93

Co-authored-by: Jordan Borean <[email protected]>

---------

Co-authored-by: Jordan Borean <[email protected]>
  • Loading branch information
padupe and jborean93 authored Feb 15, 2024
1 parent d2de2bc commit c207ed4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/modules/win_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
ansible.windows.win_shell: '$string = [Console]::In.ReadToEnd(); Write-Output $string.Trim()'
args:
stdin: Input message
- name: Run a PowerShell script with -NoProfile
ansible.windows.win_shell: C:\somescript.ps1
args:
no_profile: true
'''

RETURN = r'''
Expand Down

0 comments on commit c207ed4

Please sign in to comment.