Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

28 строки
1.8 KiB

  1. ---
  2. - name: Fail if required mautrix-googlechat 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_mautrix_googlechat_public_endpoint', when: true}
  9. - {'name': 'matrix_mautrix_googlechat_appservice_token', when: true}
  10. - {'name': 'matrix_mautrix_googlechat_homeserver_token', when: true}
  11. - {'name': 'matrix_mautrix_googlechat_database_hostname', when: "{{ matrix_mautrix_googlechat_database_engine == 'postgres' }}"}
  12. - {'name': 'matrix_mautrix_googlechat_container_network', when: true}
  13. - {'name': 'matrix_mautrix_googlechat_homeserver_address', when: true}
  14. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_hostname', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  15. - {'name': 'matrix_mautrix_googlechat_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_googlechat_metrics_proxying_enabled }}"}
  16. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_hostname', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  17. - {'name': 'matrix_mautrix_googlechat_container_labels_public_endpoint_path_prefix', when: "{{ matrix_mautrix_googlechat_container_labels_public_endpoint_enabled }}"}
  18. - name: (Deprecation) Catch and report renamed mautrix-googlechat variables
  19. ansible.builtin.fail:
  20. msg: >-
  21. Your configuration contains a variable, which now has a different name.
  22. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  23. when: "item.old in vars"
  24. with_items:
  25. - {'old': 'matrix_mautrix_googlechat_docker_image_name_prefix', 'new': 'matrix_mautrix_googlechat_docker_image_registry_prefix'}