Allow powershell exec

This commit is contained in:
L3D 2022-12-31 15:50:42 +01:00
parent 73b553633b
commit 1c936710ee
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -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"