From ec3b472b28b22c737dccf37acbd59d953694842b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 22 Sep 2022 09:58:02 +0000 Subject: [PATCH] Add XAMPP --- roles/classroom/tasks/main.yml | 1 + roles/classroom/tasks/xampp.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 roles/classroom/tasks/xampp.yml diff --git a/roles/classroom/tasks/main.yml b/roles/classroom/tasks/main.yml index 7884410..2c86159 100644 --- a/roles/classroom/tasks/main.yml +++ b/roles/classroom/tasks/main.yml @@ -26,3 +26,4 @@ - import_tasks: vmware-player.yml - import_tasks: weka.yml - import_tasks: wireshark.yml +- import_tasks: xampp.yml diff --git a/roles/classroom/tasks/xampp.yml b/roles/classroom/tasks/xampp.yml new file mode 100644 index 0000000..44bbc71 --- /dev/null +++ b/roles/classroom/tasks/xampp.yml @@ -0,0 +1,28 @@ +- name: Install XAMPP + win_chocolatey: + name: xampp-81 + +- 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: "%SystemDrive%\\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