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

31 строка
916 B

  1. ---
  2. - name: Check existence of matrix-dendrite service
  3. ansible.builtin.stat:
  4. path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
  5. register: matrix_dendrite_service_stat
  6. - name: Ensure matrix-dendrite is stopped
  7. ansible.builtin.service:
  8. name: matrix-dendrite
  9. state: stopped
  10. daemon_reload: true
  11. register: stopping_result
  12. when: "matrix_dendrite_service_stat.stat.exists"
  13. - name: Ensure matrix-dendrite.service doesn't exist
  14. ansible.builtin.file:
  15. path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
  16. state: absent
  17. when: "matrix_dendrite_service_stat.stat.exists"
  18. - name: Ensure systemd reloaded after matrix-dendrite.service removal
  19. ansible.builtin.service:
  20. daemon_reload: true
  21. when: "matrix_dendrite_service_stat.stat.exists"
  22. - name: Ensure Dendrite Docker image doesn't exist
  23. docker_image:
  24. name: "{{ matrix_dendrite_docker_image }}"
  25. state: absent