This repository was archived by the owner on May 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
vars :
5
5
bleachbit_url : https://download.bleachbit.org/BleachBit-4.4.0-portable.zip
6
+ openssh_url : https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip
6
7
7
8
roles :
8
9
- role : ansible-role-virtio-win
57
58
register : result
58
59
until : result is succeeded
59
60
61
+ - name : Download OpenSSH
62
+ win_get_url :
63
+ url : " {{ openssh_url }}"
64
+ dest : " %HOMEDRIVE%\\ OpenSSH-portable.zip"
65
+ register : result
66
+ until : result is succeeded
67
+
68
+ - name : Unzip downloaded OpenSSH
69
+ win_unzip :
70
+ src : " %HOMEDRIVE%\\ OpenSSH-portable.zip"
71
+ dest : " %HOMEDRIVE%\\ "
72
+ delete_archive : yes
73
+
74
+ - name : Install OpenSSH
75
+ win_shell : " C:\\ OpenSSH-Win64\\ install-sshd.ps1"
76
+
77
+ - name : Set OpenSSH Service to automatic startup and ensure it is up
78
+ win_service :
79
+ name : sshd
80
+ start_mode : auto
81
+ state : started
82
+
83
+ - name : Enable Firewall for OpenSSH
84
+ win_shell : New-NetFirewallRule -DisplayName "ssh" -Direction Inbound -Action Allow -Protocol "TCP" -LocalPort "22"
85
+
60
86
- name : Unzip downloaded BleachBit
61
87
win_unzip :
62
88
src : " %HOMEDRIVE%\\ BleachBit-portable.zip"
You can’t perform that action at this time.
0 commit comments