Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

40 rader
1.0 KiB

  1. ---
  2. #
  3. # Start Necessary Services
  4. #
  5. - name: Ensure matrix-jitsi-prosody container is running
  6. systemd:
  7. state: started
  8. name: matrix-jitsi-prosody
  9. register: matrix_jitsi_prosody_start_result
  10. #
  11. # Tasks related to configuring Jitsi internal authentication
  12. #
  13. - name: Ensure Jitsi internal authentication users are configured
  14. shell: "docker exec matrix-jitsi-prosody prosodyctl --config /config/prosody.cfg.lua register {{ item.username | quote }} meet.jitsi {{ item.password | quote }}"
  15. with_items: "{{ matrix_jitsi_prosody_auth_internal_accounts }}"
  16. when:
  17. - matrix_jitsi_auth_type == "internal"
  18. - matrix_jitsi_prosody_auth_internal_accounts|length > 0
  19. #
  20. # Tasks related to configuring other Jitsi authentication mechanisms
  21. #
  22. #
  23. # Tasks related to cleaning after Jitsi authentication configuration
  24. #
  25. #
  26. # Stop Necessary Services
  27. #
  28. - name: Ensure matrix-jitsi-prosody container is stopped if necessary
  29. systemd:
  30. state: stopped
  31. name: matrix-jitsi-prosody
  32. when: matrix_jitsi_prosody_start_result.changed|bool