Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 строки
1.2 KiB

  1. ---
  2. - name: Validate Matrix users to create
  3. ansible.builtin.include_tasks: "{{ role_path }}/tasks/util/validate_user.yml"
  4. with_items: "{{ matrix_user_creator_users }}"
  5. loop_control:
  6. loop_var: user
  7. # Suppress logging to avoid dumping the credentials to the shell
  8. no_log: true
  9. - name: Ensure systemd is reloaded before starting the homeserver
  10. ansible.builtin.service:
  11. daemon_reload: true
  12. - name: Ensure homeserver is started before creating Matrix users
  13. ansible.builtin.service:
  14. name: "matrix-{{ matrix_homeserver_implementation }}.service"
  15. state: started
  16. daemon_reload: true
  17. register: matrix_user_registrator_homeserver_start_result
  18. - name: Wait a while, so that the homeserver can manage to start before creating Matrix users
  19. ansible.builtin.pause:
  20. seconds: 7
  21. when: matrix_user_registrator_homeserver_start_result.changed | bool
  22. - name: Ensure Matrix users are created
  23. ansible.builtin.include_tasks: "{{ role_path }}/tasks/util/ensure_user_registered_{{ matrix_homeserver_implementation }}.yml"
  24. with_items: "{{ matrix_user_creator_users }}"
  25. loop_control:
  26. loop_var: user
  27. # Suppress logging to avoid dumping the credentials to the shell
  28. no_log: true