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.
 
 

42 regels
1.2 KiB

  1. ---
  2. #
  3. # Start Necessary Services
  4. #
  5. - name: Ensure matrix-jitsi-prosody container is running
  6. ansible.builtin.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. ansible.builtin.shell: "{{ matrix_host_command_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. register: matrix_jitsi_user_configuration_result
  20. changed_when: matrix_jitsi_user_configuration_result.rc == 0
  21. #
  22. # Tasks related to configuring other Jitsi authentication mechanisms
  23. #
  24. #
  25. # Tasks related to cleaning after Jitsi authentication configuration
  26. #
  27. #
  28. # Stop Necessary Services
  29. #
  30. - name: Ensure matrix-jitsi-prosody container is stopped if necessary
  31. ansible.builtin.systemd:
  32. state: stopped
  33. name: matrix-jitsi-prosody
  34. when: matrix_jitsi_prosody_start_result.changed | bool