Izveden refactor iz taskov v role

This commit is contained in:
Polz 2023-09-11 22:30:48 +02:00
parent 747438dedf
commit a35460a57b
317 changed files with 2761 additions and 50 deletions

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,3 @@
- name: Install XAMPP
debug:
msg: Namesto XAMPP bi verjetno LAMP?

View file

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