classroom/roles/xampp/tasks/main_win.yml
Gašper Fele-Žorž 93b01e5d53 Fix / extend README
2025-09-02 11:22:49 +02:00

29 lines
753 B
YAML

- name: Install XAMPP
win_chocolatey:
name: xampp-81
install_args: ""
- name: Make XAMPP config world writable
win_acl:
user: 'Authenticated Users'
path: "C:\\xampp\\xampp-control.ini"
type: allow
rights: Write
- name: Add firewall rules for XAMPP
win_firewall_rule:
name: "Allow inbound traffic for XAMPP: {{ item }}"
program: "C:\\xampp\\{{ item }}"
action: allow
direction: in
protocol: tcp
loop:
- "apache\\bin\\httpd.exe"
- "mysql\\bin\\mysqld.exe"
- "FileZillaFTP\\FileZillaServer.exe"
- "MercuryMail\\mercury.exe"
# XAMPP insists on looking for Java and failing without this.
- name: Set registry key for OpenJDK
win_regedit:
path: HKLM:\SOFTWARE\JavaSoft\Java Development Kit