Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 line
1.3 KiB

  1. ---
  2. # A similar task exists in `setup_install.yml`
  3. - name: Ensure matrix-coturn-ssl-reload cronjob removed
  4. file:
  5. path: /etc/cron.d/matrix-coturn-ssl-reload
  6. state: absent
  7. - name: Check existence of matrix-coturn service
  8. stat:
  9. path: "{{ matrix_systemd_path }}/matrix-coturn.service"
  10. register: matrix_coturn_service_stat
  11. when: "not matrix_coturn_enabled|bool"
  12. - name: Ensure matrix-coturn is stopped
  13. service:
  14. name: matrix-coturn
  15. state: stopped
  16. daemon_reload: yes
  17. register: stopping_result
  18. when: "not matrix_coturn_enabled|bool and matrix_coturn_service_stat.stat.exists"
  19. - name: Ensure matrix-coturn.service doesn't exist
  20. file:
  21. path: "{{ matrix_systemd_path }}/matrix-coturn.service"
  22. state: absent
  23. when: "not matrix_coturn_enabled|bool and matrix_coturn_service_stat.stat.exists"
  24. - name: Ensure systemd reloaded after matrix-coturn.service removal
  25. service:
  26. daemon_reload: yes
  27. when: "not matrix_coturn_enabled|bool and matrix_coturn_service_stat.stat.exists"
  28. - name: Ensure Matrix coturn paths don't exist
  29. file:
  30. path: "{{ matrix_coturn_base_path }}"
  31. state: absent
  32. when: "not matrix_coturn_enabled|bool"
  33. - name: Ensure coturn Docker image doesn't exist
  34. docker_image:
  35. name: "{{ matrix_coturn_docker_image }}"
  36. state: absent
  37. when: "not matrix_coturn_enabled|bool"