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

26 строки
1.3 KiB

  1. ---
  2. - name: Fail if required mautrix-facebook 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_facebook_public_endpoint', when: true}
  9. - {'name': 'matrix_mautrix_facebook_appservice_token', when: true}
  10. - {'name': 'matrix_mautrix_facebook_homeserver_token', when: true}
  11. - {'name': 'matrix_mautrix_facebook_database_hostname', when: "{{ matrix_mautrix_facebook_database_engine == 'postgres' }}"}
  12. - when: "matrix_mautrix_facebook_database_engine == 'sqlite' and matrix_mautrix_facebook_docker_image.endswith(':da1b4ec596e334325a1589e70829dea46e73064b')"
  13. block:
  14. - name: Inject warning if on an old SQLite-supporting version
  15. ansible.builtin.set_fact:
  16. devture_playbook_runtime_messages_list: |
  17. {{
  18. devture_playbook_runtime_messages_list | default([])
  19. +
  20. [
  21. "NOTE: Your mautrix-facebook bridge is still on SQLite and on the last version that supported it, before support was dropped. Support has been subsequently re-added in v0.3.2, so we advise you to upgrade (by removing your `matrix_mautrix_facebook_docker_image` definition from vars.yml)"
  22. ]
  23. }}