Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
2.2 KiB

  1. ---
  2. - name: Fail if required mautrix-telegram 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_telegram_hostname', when: true}
  9. - {'name': 'matrix_mautrix_telegram_path_prefix', when: true}
  10. - {'name': 'matrix_mautrix_telegram_api_id', when: true}
  11. - {'name': 'matrix_mautrix_telegram_api_hash', when: true}
  12. - {'name': 'matrix_mautrix_telegram_public_endpoint', when: true}
  13. - {'name': 'matrix_mautrix_telegram_appservice_token', when: true}
  14. - {'name': 'matrix_mautrix_telegram_homeserver_address', when: true}
  15. - {'name': 'matrix_mautrix_telegram_homeserver_token', when: true}
  16. - {'name': 'matrix_mautrix_telegram_container_network', when: true}
  17. - {'name': 'matrix_mautrix_telegram_database_hostname', when: "{{ matrix_mautrix_telegram_database_engine == 'postgres' }}"}
  18. - {'name': 'matrix_mautrix_telegram_metrics_proxying_hostname', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  19. - {'name': 'matrix_mautrix_telegram_metrics_proxying_path_prefix', when: "{{ matrix_mautrix_telegram_metrics_proxying_enabled }}"}
  20. - name: (Deprecation) Catch and report renamed Telegram variables
  21. ansible.builtin.fail:
  22. msg: >-
  23. Your configuration contains a variable, which now has a different name.
  24. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  25. when: "item.old in vars"
  26. with_items:
  27. - {'old': 'matrix_mautrix_telegram_container_exposed_port_number', 'new': '<superseded by matrix_mautrix_telegram_container_http_host_bind_port>'}
  28. - {'old': 'matrix_mautrix_telegram_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  29. - {'old': 'matrix_telegram_lottieconverter_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  30. - {'old': 'matrix_telegram_lottieconverter_container_self_build_mask_arch', 'new': 'matrix_telegram_lottieconverter_container_image_self_build_mask_arch'}
  31. - {'old': 'matrix_mautrix_telegram_login_shared_secret', 'new': '<removed>'}