Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/xampp/tasks/main.yml
Normal file
4
roles/xampp/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
3
roles/xampp/tasks/main_lin.yml
Normal file
3
roles/xampp/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: Install XAMPP
|
||||
debug:
|
||||
msg: Namesto XAMPP bi verjetno LAMP?
|
28
roles/xampp/tasks/main_win.yml
Normal file
28
roles/xampp/tasks/main_win.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue