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

37 строки
1.3 KiB

  1. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Ensure Matrix Authentication Service is started
  6. ansible.builtin.service:
  7. name: matrix-authentication-service
  8. state: started
  9. daemon_reload: true
  10. register: matrix_authentication_service_mas_ensure_started_result
  11. - name: Wait a bit, so that Matrix Authentication Service can start
  12. when: matrix_authentication_service_mas_ensure_started_result.changed | bool
  13. ansible.builtin.wait_for:
  14. timeout: "{{ matrix_authentication_service_syn2mas_start_wait_time_seconds }}"
  15. delegate_to: 127.0.0.1
  16. become: false
  17. - name: Generate mas-cli doctor command
  18. ansible.builtin.set_fact:
  19. matrix_authentication_service_mas_cli_doctor_command: >-
  20. {{ matrix_authentication_service_bin_path }}/mas-cli doctor
  21. tags:
  22. - skip_ansible_lint
  23. - name: Run mas-cli doctor
  24. ansible.builtin.command:
  25. cmd: "{{ matrix_authentication_service_mas_cli_doctor_command }}"
  26. register: matrix_authentication_service_mas_cli_doctor_command_result
  27. changed_when: matrix_authentication_service_mas_cli_doctor_command_result.rc == 0
  28. - name: Print mas-cli doctor command result
  29. ansible.builtin.debug:
  30. var: matrix_authentication_service_mas_cli_doctor_command_result