Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

30 lignes
1.1 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 homeserver is started before creating Matrix users
  10. ansible.builtin.service:
  11. name: "matrix-{{ matrix_homeserver_implementation }}.service"
  12. state: started
  13. daemon_reload: true
  14. register: matrix_user_registrator_homeserver_start_result
  15. - name: Wait a while, so that the homeserver can manage to start before creating Matrix users
  16. ansible.builtin.pause:
  17. seconds: "{{ matrix_user_creator_homeserver_start_wait_time_seconds }}"
  18. when: matrix_user_registrator_homeserver_start_result.changed | bool
  19. - name: Ensure Matrix users are created
  20. ansible.builtin.include_tasks: "{{ role_path }}/tasks/util/ensure_user_registered_{{ matrix_homeserver_implementation }}.yml"
  21. with_items: "{{ matrix_user_creator_users }}"
  22. loop_control:
  23. loop_var: user
  24. # Suppress logging to avoid dumping the credentials to the shell
  25. no_log: true