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

33 строки
1.2 KiB

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