mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-15 06:52:51 +01:00
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
|
---
|
||
|
|
||
|
- name: Ensure Matrix Authentication Service is started
|
||
|
ansible.builtin.service:
|
||
|
name: matrix-authentication-service
|
||
|
state: started
|
||
|
daemon_reload: true
|
||
|
register: matrix_authentication_service_mas_ensure_started_result
|
||
|
|
||
|
- when: matrix_authentication_service_mas_ensure_started_result.changed | bool
|
||
|
name: Wait a bit, so that Matrix Authentication Service can start
|
||
|
ansible.builtin.wait_for:
|
||
|
timeout: "{{ matrix_authentication_service_syn2mas_start_wait_time_seconds }}"
|
||
|
delegate_to: 127.0.0.1
|
||
|
become: false
|
||
|
|
||
|
- name: Generate mas-cli doctor command
|
||
|
ansible.builtin.set_fact:
|
||
|
matrix_authentication_service_mas_cli_doctor_command: >-
|
||
|
{{ matrix_authentication_service_bin_path }}/mas-cli doctor
|
||
|
tags:
|
||
|
- skip_ansible_lint
|
||
|
|
||
|
- name: Run mas-cli doctor
|
||
|
ansible.builtin.command:
|
||
|
cmd: "{{ matrix_authentication_service_mas_cli_doctor_command }}"
|
||
|
register: matrix_authentication_service_mas_cli_doctor_command_result
|
||
|
changed_when: matrix_authentication_service_mas_cli_doctor_command_result.rc == 0
|
||
|
|
||
|
- name: Print mas-cli doctor command result
|
||
|
ansible.builtin.debug:
|
||
|
var: matrix_authentication_service_mas_cli_doctor_command_result
|