mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Add option for wsl_shell_type, protect wsl.exe arguments if SSH shell is Powershell (#11308)
* feat(wsl): add option for wsl_shell_type, protect wsl arguments if SSH shell is Powershell * docs(wsl): add changelog fragment * docs(wsl): fix changelog fragment syntax, add issue link Co-authored-by: Felix Fontein <felix@fontein.de> * feat(wsl): improve new option documentation Co-authored-by: Felix Fontein <felix@fontein.de> * refactor(wsl): put integrasion test flag into a variable for convenience * feat(wsl): rename option to wsl_remote_ssh_shell_type * feat(wsl): escape "%" if shell is cmd, raise AnsibleError if powershell * test(wsl): fix unit tests for wsl - remove redundant check - moved to a separate function - fix check for cmd escaping of "%" - fix formatting / whitespace * test(wsl): fix expected error message * test(wsl): fix test - position of stop-parsing token changed Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
4b0aeede69
commit
4b67afc2b0
3 changed files with 45 additions and 3 deletions
3
changelogs/fragments/11308-wsl-shell-type.yml
Normal file
3
changelogs/fragments/11308-wsl-shell-type.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
minor_changes:
|
||||
- wsl connection plugin - add option ``wsl_remote_ssh_shell_type``. Support PowerShell in addition to cmd as the Windows
|
||||
shell (https://github.com/ansible-collections/community.general/issues/11307, https://github.com/ansible-collections/community.general/pull/11308).
|
||||
Loading…
Add table
Add a link
Reference in a new issue