From 0299b7444063dda366765c13d7367382e2076612 Mon Sep 17 00:00:00 2001 From: Chasethechicken Date: Tue, 16 Jul 2024 20:55:03 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Slavi Pantaleev --- roles/custom/matrix-bot-draupnir/tasks/setup_install.yml | 2 +- roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml b/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml index a59e8b443..a549ad513 100644 --- a/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml +++ b/roles/custom/matrix-bot-draupnir/tasks/setup_install.yml @@ -17,7 +17,7 @@ - {path: "{{ matrix_bot_draupnir_docker_src_files_path }}", when: "{{ matrix_bot_draupnir_container_image_self_build }}"} when: "item.when | bool" -- name: Ensure matrix-bot-draupnir is configured +- name: Ensure matrix-bot-draupnir support files installed ansible.builtin.template: src: "{{ item.src }}" dest: "{{ item.dest }}" diff --git a/roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 b/roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 index 340234629..f472447b2 100644 --- a/roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 +++ b/roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 @@ -248,7 +248,7 @@ web: # to configure a reverse proxy, see e.g. test/nginx.conf abuseReporting: # Whether to enable this feature. - enabled: {{ matrix_bot_draupnir_abuse_reporting_enabled }} + enabled: {{ matrix_bot_draupnir_abuse_reporting_enabled | to_json }} {% endif %} # Whether or not to actively poll synapse for abuse reports, to be used @@ -258,4 +258,4 @@ pollReports: false # Whether or not new reports, received either by webapi or polling, # should be printed to our managementRoom. -displayReports: {{ matrix_bot_draupnir_display_reports }} +displayReports: {{ matrix_bot_draupnir_display_reports | to_json }}