Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

32 righe
1.5 KiB

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_mautrix_facebook_appservice_token"
  9. - "matrix_mautrix_facebook_homeserver_token"
  10. - block:
  11. - name: Fail if on SQLite, unless on the last version supporting SQLite
  12. fail:
  13. msg: >-
  14. You're trying to use the mautrix-facebook bridge with an SQLite database.
  15. Going forward, this bridge only supports Postgres.
  16. To learn more about this, see our changelog: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-the-mautrix-facebook-bridge-now-requires-a-postgres-database
  17. when: "not matrix_mautrix_facebook_docker_image.endswith(':da1b4ec596e334325a1589e70829dea46e73064b')"
  18. - name: Inject warning if still on SQLite
  19. set_fact:
  20. matrix_playbook_runtime_results: |
  21. {{
  22. matrix_playbook_runtime_results|default([])
  23. +
  24. [
  25. "NOTE: Your mautrix-facebook bridge setup is still on SQLite. Your bridge is not getting any updates and will likely stop working at some point. To learn more about this, see our changelog: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-the-mautrix-facebook-bridge-now-requires-a-postgres-database"
  26. ]
  27. }}
  28. when: "matrix_mautrix_facebook_database_engine == 'sqlite'"