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.
 
 

33 righe
1.3 KiB

  1. ---
  2. - name: Fail if REST Auth endpoint not configured
  3. fail:
  4. msg: "You have enabled the REST Auth password provider, but have not configured its endpoint in the `matrix_synapse_ext_password_provider_rest_auth_endpoint` variable. Consult the documentation."
  5. when: "matrix_synapse_ext_password_provider_rest_auth_endpoint == ''"
  6. - name: Download matrix-synapse-rest-auth
  7. get_url:
  8. url: "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"
  9. dest: "{{ matrix_synapse_ext_path }}/rest_auth_provider.py"
  10. force: true
  11. mode: 0440
  12. owner: "{{ matrix_user_username }}"
  13. group: "{{ matrix_user_groupname }}"
  14. register: result
  15. retries: "{{ matrix_geturl_retries_count }}"
  16. delay: "{{ matrix_geturl_retries_delay }}"
  17. until: result is not failed
  18. - set_fact:
  19. matrix_synapse_password_providers_enabled: true
  20. matrix_synapse_container_extra_arguments: >
  21. {{ matrix_synapse_container_extra_arguments|default([]) }}
  22. +
  23. ["--mount type=bind,src={{ matrix_synapse_ext_path }}/rest_auth_provider.py,dst={{ matrix_synapse_in_container_python_packages_path }}/rest_auth_provider.py,ro"]
  24. matrix_synapse_additional_loggers: >
  25. {{ matrix_synapse_additional_loggers }}
  26. +
  27. {{ [{'name': 'rest_auth_provider', 'level': 'INFO'}] }}