Finished setup for drone server

This commit is contained in:
2023-08-01 09:14:40 +02:00
parent 4e620d6896
commit 40db88c256
25 changed files with 319 additions and 13 deletions
+9
View File
@@ -0,0 +1,9 @@
---
- name: Restart apache
ansible.builtin.service:
name: apache2
state: restarted
- name: Reload apache
ansible.builtin.service:
name: apache2
state: reloaded
+3
View File
@@ -0,0 +1,3 @@
---
dependencies:
- role: letsencrypt
+42
View File
@@ -0,0 +1,42 @@
---
- name: Install apache 2
ansible.builtin.apt:
name: apache2
update_cache: true
tags:
- apache
- name: Allow apache through firewall
community.general.ufw:
name: Apache Full
rule: allow
- name: Enable mods
block:
- name: Enable headers
community.general.apache2_module:
name: headers
state: present
- name: Enable proxy
community.general.apache2_module:
name: proxy
state: present
- name: Enable proxy_wstunnel
community.general.apache2_module:
name: proxy_wstunnel
state: present
- name: Enable proxy_http
community.general.apache2_module:
name: proxy_http
state: present
- name: Enable proxy_balancer
community.general.apache2_module:
name: proxy_balancer
state: present
- name: Enable lbmethod_byrequests
community.general.apache2_module:
name: lbmethod_byrequests
state: present
- name: Enable ssl
community.general.apache2_module:
name: ssl
state: present
notify: Restart apache