浏览代码

Fix syntax error in force restart

pull/5187/head
Catalan Lover 3 个月前
父节点
当前提交
e3b6e248cd
找不到此签名对应的密钥 GPG 密钥 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



正在加载...
取消
保存