mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Finished setup for drone server
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Restart apache
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
- name: Reload apache
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: letsencrypt
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user