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

37 строки
1.3 KiB

  1. ---
  2. - name: Check existence of matrix-riot-web.service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-riot-web.service"
  5. register: matrix_client_riot_web_service_stat
  6. when: "matrix_client_element_enabled|bool"
  7. - name: Ensure matrix-riot-web is stopped
  8. service:
  9. name: matrix-riot-web
  10. state: stopped
  11. daemon_reload: yes
  12. register: stopping_result
  13. when: "matrix_client_element_enabled|bool and matrix_client_riot_web_service_stat.stat.exists"
  14. - name: Ensure matrix-riot-web.service doesn't exist
  15. file:
  16. path: "{{ matrix_systemd_path }}/matrix-riot-web.service"
  17. state: absent
  18. when: "matrix_client_element_enabled|bool and matrix_client_riot_web_service_stat.stat.exists"
  19. - name: Ensure systemd reloaded after matrix-riot-web.service removal
  20. service:
  21. daemon_reload: yes
  22. when: "matrix_client_element_enabled|bool and matrix_client_riot_web_service_stat.stat.exists"
  23. - name: Check existence of /matrix/riot-web
  24. stat:
  25. path: "/matrix/riot-web"
  26. register: matrix_client_riot_web_dir_stat
  27. when: "matrix_client_element_enabled|bool"
  28. - name: Relocate /matrix/riot-web to /matrix/client-element
  29. command: "mv /matrix/riot-web /matrix/client-element"
  30. when: "matrix_client_element_enabled|bool and matrix_client_riot_web_dir_stat.stat.exists"