classroom/roles/fri_base/tasks/main_win.yml
Gašper Fele-Žorž bdc4fa2fc5 Add ssh keys
2025-09-06 01:02:27 +02:00

50 lines
1.2 KiB
YAML

- name: Set RTC to UTC
win_regedit:
path: HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
name: RealTimeIsUniversal
data: 1
type: dword
- name: Set timezone
win_timezone:
timezone: Central Europe Standard Time
- name: Show file extensions in Explorer
win_regedit:
path: HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
name: HideFileExt
data: 0
type: dword
- name: Allow SMB insecure guest access
win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation
name: AllowInsecureGuestAuth
data: 1
type: dword
- name: Enable Unified Write Filter
win_optional_feature:
include_parent: true
name: Client-UnifiedWriteFilter
state: present
- name: Install PSCX
community.windows.win_psmodule:
name: Pscx
accept_license: true
allow_clobber: true
state: present
- name: Copy admin ssh keys to authorized_keys
win_copy:
src: authorized_keys
dest: "%USERPROFILE%\\.ssh"
- name: Copy admin keys to administrators_authorized_keys
win_copy:
src: authorized_keys
dest: C:\ProgramData\ssh\administrators_authorized_keys
# TODO: turn on GPO to allow guest SMB logins
# TODO: open firewall for Samba