Преглед изворни кода

Fix syntax error in force restart

pull/5187/head
Catalan Lover пре 1 месец
родитељ
комит
e3b6e248cd
No known key found for this signature in database GPG Key ID: 99A263BABA26C9D9
2 измењених фајлова са 14 додато и 4 уклоњено
  1. +7
    -2
      roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml
  2. +7
    -2
      roles/custom/matrix-bot-draupnir/defaults/main.yml

+ 7
- 2
roles/custom/matrix-appservice-draupnir-for-all/defaults/main.yml Прегледај датотеку

@@ -49,11 +49,16 @@ matrix_appservice_draupnir_for_all_systemd_wanted_services_list: []
# Force restart tag is used to control if the tag that is used is rolling or not.
# When both Draupnir roles are enabled, we only force restart if they are on the same
# version string and that version string matches the moving tag.
matrix_appservice_draupnir_for_all_force_restart_tag: "latest"
matrix_appservice_draupnir_for_all_force_rolling_tag: "latest"

# Force restart the service on all runs only when both roles are enabled, both roles
# are using the same version string, and that version is the moving tag.
matrix_appservice_draupnir_for_all_force_restart: "if {{ matrix_bot_draupnir_enabled | bool and matrix_appservice_draupnir_for_all_enabled | bool and matrix_bot_draupnir_version == matrix_appservice_draupnir_for_all_version and matrix_appservice_draupnir_for_all_version == matrix_appservice_draupnir_for_all_force_restart_tag }} then true else false end"
matrix_appservice_draupnir_for_all_force_restart: "{{
matrix_bot_draupnir_enabled | bool and
matrix_appservice_draupnir_for_all_enabled | bool and
matrix_bot_draupnir_version == matrix_appservice_draupnir_for_all_version and
matrix_appservice_draupnir_for_all_version == matrix_appservice_draupnir_for_all_force_rolling_tag
}}"

# The room ID where people can use the bot. The bot has no access controls, so
# anyone in this room can use the bot - secure your room!


+ 7
- 2
roles/custom/matrix-bot-draupnir/defaults/main.yml Прегледај датотеку

@@ -31,11 +31,16 @@ matrix_bot_draupnir_container_src_files_path: "{{ matrix_bot_draupnir_base_path
# Force restart tag is used to control if the tag that is used is rolling or not.
# When both Draupnir roles are enabled, we only force restart if they are on the same
# version string and that version string matches the moving tag.
matrix_bot_draupnir_force_restart_tag: "latest"
matrix_bot_draupnir_force_rolling_tag: "latest"

# Force restart the service on all runs only when both roles are enabled, both roles
# are using the same version string, and that version is the moving tag.
matrix_bot_draupnir_force_restart: "if {{ matrix_bot_draupnir_enabled | bool and matrix_appservice_draupnir_for_all_enabled | bool and matrix_bot_draupnir_version == matrix_appservice_draupnir_for_all_version and matrix_bot_draupnir_version == matrix_bot_draupnir_force_restart_tag }} then true else false end"
matrix_bot_draupnir_force_restart: "{{
matrix_bot_draupnir_enabled | bool and
matrix_appservice_draupnir_for_all_enabled | bool and
matrix_bot_draupnir_version == matrix_appservice_draupnir_for_all_version and
matrix_bot_draupnir_version == matrix_bot_draupnir_rolling_tag
}}"

matrix_bot_draupnir_config_web_enabled: "{{ matrix_bot_draupnir_config_web_abuseReporting or matrix_bot_draupnir_config_web_synapseHTTPAntispam_enabled }}" # noqa var-naming



Loading…
Откажи
Сачувај