From 09d4a9beab4f631e98bcec32f7ff674ef077ccce Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 31 Aug 2022 11:17:56 +0300 Subject: [PATCH] Make matrix_bot_postmoogle_admins=[] when matrix_admin not set .. instead of `['']`. The final result in the `env` file will be the same (`POSTMOOGLE_ADMINS=`) in both cases, but it's better to avoid confusion. --- roles/matrix-bot-postmoogle/defaults/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/matrix-bot-postmoogle/defaults/main.yml b/roles/matrix-bot-postmoogle/defaults/main.yml index 13953f2a3..10c4255b6 100644 --- a/roles/matrix-bot-postmoogle/defaults/main.yml +++ b/roles/matrix-bot-postmoogle/defaults/main.yml @@ -82,6 +82,7 @@ matrix_bot_postmoogle_maxsize: '1024' # A list of whitelisted users allowed to use the bridge. # If not defined, everyone is allowed. # Example set of rules: +# matrix_bot_postmoogle_users: # - @someone:example.com # - @another:example.com # - @bot.*:example.com @@ -91,12 +92,12 @@ matrix_bot_postmoogle_users: # A list of admins # Example set of rules: +# matrix_bot_postmoogle_admins: # - @someone:example.com # - @another:example.com # - @bot.*:example.com # - @*:another.com -matrix_bot_postmoogle_admins: - - "{{ matrix_admin }}" +matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}" # Sentry DSN matrix_bot_postmoogle_sentry: ''