Allow powershell exec
This commit is contained in:
parent
73b553633b
commit
1c936710ee
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
---
|
||||
# See https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell
|
||||
- name: Set Powershell Execution to Remote Signed
|
||||
ansible.windows.win_powershell:
|
||||
script: "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine"
|
||||
changed_when: _fw.changed
|
||||
|
||||
- name: Install the OpenSSH Server
|
||||
ansible.windows.win_powershell:
|
||||
script: "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"
|
||||
|
|
Loading…
Reference in a new issue