mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-04-19 18:58:44 +02:00
Remove some superficial comments
This commit is contained in:
parent
413d591562
commit
81a30f17ac
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
# roles/custom/matrix-element-call/tasks/install.yml
|
# roles/custom/matrix-element-call/tasks/install.yml
|
||||||
|
|
||||||
# Ensure Required Directories Exist
|
|
||||||
- name: Ensure matrix-element-call paths exist
|
- name: Ensure matrix-element-call paths exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
@ -13,7 +12,6 @@
|
|||||||
- path: "{{ matrix_element_call_base_path }}"
|
- path: "{{ matrix_element_call_base_path }}"
|
||||||
- path: "{{ matrix_base_data_path }}/static-files/public/.well-known/element" # Directory for element.json
|
- path: "{{ matrix_base_data_path }}/static-files/public/.well-known/element" # Directory for element.json
|
||||||
|
|
||||||
# Ensure Configuration Files are in Place
|
|
||||||
- name: Ensure Element Call config.json is in place
|
- name: Ensure Element Call config.json is in place
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ role_path }}/templates/config.json.j2"
|
src: "{{ role_path }}/templates/config.json.j2"
|
||||||
@ -30,7 +28,6 @@
|
|||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_groupname }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
# Ensure Docker Images are Pulled
|
|
||||||
- name: Ensure matrix-element-call Docker image is pulled
|
- name: Ensure matrix-element-call Docker image is pulled
|
||||||
community.docker.docker_image:
|
community.docker.docker_image:
|
||||||
name: "{{ matrix_element_call_container_image }}"
|
name: "{{ matrix_element_call_container_image }}"
|
||||||
@ -48,7 +45,6 @@
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}"
|
driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}"
|
||||||
|
|
||||||
# Systemd Services for Element Call
|
|
||||||
- name: Ensure matrix-element-call systemd service is installed
|
- name: Ensure matrix-element-call systemd service is installed
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ role_path }}/templates/systemd/matrix-element-call.service.j2"
|
src: "{{ role_path }}/templates/systemd/matrix-element-call.service.j2"
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
# Main task file for matrix-element-call
|
|
||||||
|
|
||||||
- tags:
|
- tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
# Uninstall tasks for matrix-element-call
|
|
||||||
|
|
||||||
- name: Stop and remove matrix-element-call container
|
- name: Stop and remove matrix-element-call container
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
# Validate configuration for matrix-element-call
|
|
||||||
|
|
||||||
- name: Fail if required matrix-element-call settings are not defined
|
- name: Fail if required matrix-element-call settings are not defined
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{% if matrix_element_call_container_labels_traefik_enabled %}
|
{% if matrix_element_call_container_labels_traefik_enabled %}
|
||||||
traefik.enable=true
|
traefik.enable=true
|
||||||
|
|
||||||
# Network configuration for Traefik
|
|
||||||
{% if matrix_element_call_container_labels_traefik_docker_network %}
|
{% if matrix_element_call_container_labels_traefik_docker_network %}
|
||||||
traefik.docker.network={{ matrix_element_call_container_labels_traefik_docker_network }}
|
traefik.docker.network={{ matrix_element_call_container_labels_traefik_docker_network }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -10,7 +9,6 @@ traefik.http.services.matrix-element-call.loadbalancer.server.port=8080
|
|||||||
|
|
||||||
{% set middlewares = [] %}
|
{% set middlewares = [] %}
|
||||||
|
|
||||||
# Path prefix handling for Element Call
|
|
||||||
{% if matrix_element_call_container_labels_traefik_path_prefix != '/' %}
|
{% if matrix_element_call_container_labels_traefik_path_prefix != '/' %}
|
||||||
traefik.http.middlewares.matrix-element-call-slashless-redirect.redirectregex.regex=({{ matrix_element_call_container_labels_traefik_path_prefix | quote }})$
|
traefik.http.middlewares.matrix-element-call-slashless-redirect.redirectregex.regex=({{ matrix_element_call_container_labels_traefik_path_prefix | quote }})$
|
||||||
traefik.http.middlewares.matrix-element-call-slashless-redirect.redirectregex.replacement=${1}/
|
traefik.http.middlewares.matrix-element-call-slashless-redirect.redirectregex.replacement=${1}/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#jinja2: lstrip_blocks: "True"
|
#jinja2: lstrip_blocks: "True"
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Matrix Element Call Service
|
Description=Element Call
|
||||||
{% for service in matrix_client_element_systemd_required_services_list %}
|
{% for service in matrix_client_element_systemd_required_services_list %}
|
||||||
Requires={{ service }}
|
Requires={{ service }}
|
||||||
After={{ service }}
|
After={{ service }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user