Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

15 行
937 B

  1. ---
  2. - name: Fail if required matrix-alertmanager-receiver settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_alertmanager_receiver_hostname', when: true}
  9. - {'name': 'matrix_alertmanager_receiver_path_prefix', when: true}
  10. - {'name': 'matrix_alertmanager_receiver_config_matrix_homeserver_url', when: true}
  11. - {'name': 'matrix_alertmanager_receiver_config_matrix_access_token', when: true}
  12. - {'name': 'matrix_alertmanager_receiver_container_network', when: true}
  13. - {'name': 'matrix_alertmanager_receiver_metrics_proxying_hostname', when: "{{ matrix_alertmanager_receiver_metrics_proxying_enabled }}"}
  14. - {'name': 'matrix_alertmanager_receiver_metrics_proxying_path_prefix', when: "{{ matrix_alertmanager_receiver_metrics_proxying_enabled }}"}