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.
 
 

43 righe
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: "{{ devture_systemd_docker_base_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. no_log: true
  22. #
  23. # Tasks related to configuring other Jitsi authentication mechanisms
  24. #
  25. #
  26. # Tasks related to cleaning after Jitsi authentication configuration
  27. #
  28. #
  29. # Stop Necessary Services
  30. #
  31. - name: Ensure matrix-jitsi-prosody container is stopped if necessary
  32. ansible.builtin.systemd:
  33. state: stopped
  34. name: matrix-jitsi-prosody
  35. when: matrix_jitsi_prosody_start_result.changed | bool