From 81a30f17ac0441852bb10aa3d00d0e0ac4dd010e Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 12 Mar 2025 06:29:39 +0200 Subject: [PATCH] Remove some superficial comments --- roles/custom/matrix-element-call/tasks/install.yml | 4 ---- roles/custom/matrix-element-call/tasks/main.yml | 1 - roles/custom/matrix-element-call/tasks/uninstall.yml | 1 - roles/custom/matrix-element-call/tasks/validate_config.yml | 1 - roles/custom/matrix-element-call/templates/labels.j2 | 2 -- .../templates/systemd/matrix-element-call.service.j2 | 2 +- 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/roles/custom/matrix-element-call/tasks/install.yml b/roles/custom/matrix-element-call/tasks/install.yml index b0ec53d70..009739ec0 100644 --- a/roles/custom/matrix-element-call/tasks/install.yml +++ b/roles/custom/matrix-element-call/tasks/install.yml @@ -1,7 +1,6 @@ --- # roles/custom/matrix-element-call/tasks/install.yml -# Ensure Required Directories Exist - name: Ensure matrix-element-call paths exist ansible.builtin.file: path: "{{ item.path }}" @@ -13,7 +12,6 @@ - path: "{{ matrix_element_call_base_path }}" - 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 ansible.builtin.template: src: "{{ role_path }}/templates/config.json.j2" @@ -30,7 +28,6 @@ owner: "{{ matrix_user_username }}" group: "{{ matrix_user_groupname }}" -# Ensure Docker Images are Pulled - name: Ensure matrix-element-call Docker image is pulled community.docker.docker_image: name: "{{ matrix_element_call_container_image }}" @@ -48,7 +45,6 @@ driver: bridge driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" -# Systemd Services for Element Call - name: Ensure matrix-element-call systemd service is installed ansible.builtin.template: src: "{{ role_path }}/templates/systemd/matrix-element-call.service.j2" diff --git a/roles/custom/matrix-element-call/tasks/main.yml b/roles/custom/matrix-element-call/tasks/main.yml index 183c0c6ed..3275828ce 100644 --- a/roles/custom/matrix-element-call/tasks/main.yml +++ b/roles/custom/matrix-element-call/tasks/main.yml @@ -1,5 +1,4 @@ --- -# Main task file for matrix-element-call - tags: - setup-all diff --git a/roles/custom/matrix-element-call/tasks/uninstall.yml b/roles/custom/matrix-element-call/tasks/uninstall.yml index c93837b63..504ee671c 100644 --- a/roles/custom/matrix-element-call/tasks/uninstall.yml +++ b/roles/custom/matrix-element-call/tasks/uninstall.yml @@ -1,5 +1,4 @@ --- -# Uninstall tasks for matrix-element-call - name: Stop and remove matrix-element-call container community.docker.docker_container: diff --git a/roles/custom/matrix-element-call/tasks/validate_config.yml b/roles/custom/matrix-element-call/tasks/validate_config.yml index 3b6712727..27516484f 100644 --- a/roles/custom/matrix-element-call/tasks/validate_config.yml +++ b/roles/custom/matrix-element-call/tasks/validate_config.yml @@ -1,5 +1,4 @@ --- -# Validate configuration for matrix-element-call - name: Fail if required matrix-element-call settings are not defined ansible.builtin.fail: diff --git a/roles/custom/matrix-element-call/templates/labels.j2 b/roles/custom/matrix-element-call/templates/labels.j2 index 014add79a..26c7197f2 100644 --- a/roles/custom/matrix-element-call/templates/labels.j2 +++ b/roles/custom/matrix-element-call/templates/labels.j2 @@ -1,7 +1,6 @@ {% if matrix_element_call_container_labels_traefik_enabled %} traefik.enable=true -# Network configuration for Traefik {% if matrix_element_call_container_labels_traefik_docker_network %} traefik.docker.network={{ matrix_element_call_container_labels_traefik_docker_network }} {% endif %} @@ -10,7 +9,6 @@ traefik.http.services.matrix-element-call.loadbalancer.server.port=8080 {% set middlewares = [] %} -# Path prefix handling for Element Call {% 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.replacement=${1}/ diff --git a/roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2 b/roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2 index a22ff17f1..1703cc698 100644 --- a/roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2 +++ b/roles/custom/matrix-element-call/templates/systemd/matrix-element-call.service.j2 @@ -1,6 +1,6 @@ #jinja2: lstrip_blocks: "True" [Unit] -Description=Matrix Element Call Service +Description=Element Call {% for service in matrix_client_element_systemd_required_services_list %} Requires={{ service }} After={{ service }}