From 4fb709f133c9e730657bdfa23881be902db41404 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Tue, 28 Mar 2023 16:25:55 +0200 Subject: [PATCH] update default webhook var --- defaults/main.yml | 2 +- templates/hydra-dispatcher-apps.yml.j2 | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8e56d76..259017b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -75,7 +75,7 @@ hydra_dispatcher_sentry_dsn: hydra_dispatcher_sentry_environment: hydra_dispatcher_mounts: [] hydra_dispatcher_disable_app_auto_select: true -enable_hydra_dispatcher_webhook: no +hydra_dispatcher_webhook: false hydra_dispatcher_webhook_api_url: hydra_dispatcher_webhook_api_key: YouNeedToChangeMe hydra_dispatcher_webhook_rules: diff --git a/templates/hydra-dispatcher-apps.yml.j2 b/templates/hydra-dispatcher-apps.yml.j2 index f9a4b97..2d1064b 100644 --- a/templates/hydra-dispatcher-apps.yml.j2 +++ b/templates/hydra-dispatcher-apps.yml.j2 @@ -61,9 +61,8 @@ hydra: attributes_rewrite_rules: {{ hydra_ldap_attributes_rewrite_rules | to_json }} icon_url: "{{ hydra_ldap_app_icon_url }}" {% endif %} -{% if enable_hydra_dispatcher_webhook %} webhook: - enabled: true + enabled: {{ hydra_dispatcher_webhook }} api_url: {{ hydra_dispatcher_webhook_api_url }} api_key: {{ hydra_dispatcher_webhook_api_key }} api_method: POST