mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
33
roles/web-app-matrix/tasks/03_webserver.yml
Normal file
33
roles/web-app-matrix/tasks/03_webserver.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
- name: create {{ MATRIX_WELL_KNOWN_DIRECTORY }}
|
||||
file:
|
||||
path: "{{ MATRIX_WELL_KNOWN_DIRECTORY }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: create {{ MATRIX_WELL_KNOWN_FILE }}
|
||||
template:
|
||||
src: "well-known.j2"
|
||||
dest: "{{ MATRIX_WELL_KNOWN_FILE }}"
|
||||
|
||||
- name: "include role srv-proxy-6-6-domain for {{ MATRIX_ELEMENT_DOMAIN }}"
|
||||
include_role:
|
||||
name: srv-proxy-6-6-domain
|
||||
vars:
|
||||
domain: "{{ MATRIX_ELEMENT_DOMAIN }}"
|
||||
http_port: "{{ MATRIX_ELEMENT_PORT }}"
|
||||
|
||||
- name: "include role for {{ application_id }} to receive certs & do modification routines for {{ MATRIX_SYNAPSE_DOMAIN }}"
|
||||
include_role:
|
||||
name: srv-web-7-6-composer
|
||||
vars:
|
||||
domain: "{{ MATRIX_SYNAPSE_DOMAIN }}"
|
||||
http_port: "{{ MATRIX_SYNAPSE_PORT }}"
|
||||
|
||||
- name: create {{ MATRIX_SYNAPSE_DOMAIN }}.conf
|
||||
template:
|
||||
src: "templates/nginx.conf.j2"
|
||||
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ MATRIX_SYNAPSE_DOMAIN }}.conf"
|
||||
vars:
|
||||
domain: "{{ MATRIX_SYNAPSE_DOMAIN }}" # Didn't work in the past. May it works now. This does not seem to work @todo Check how to solve without declaring set_fact, seems a bug at templates
|
||||
http_port: "{{ MATRIX_SYNAPSE_PORT }}"
|
||||
notify: restart openresty
|
Reference in New Issue
Block a user