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