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.
 
 

36 rivejä
1.3 KiB

  1. ---
  2. - name: Check existence of matrix-user-verification-service service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
  5. register: matrix_user_verification_service_service_stat
  6. - name: Ensure matrix-user-verification-service is stopped
  7. service:
  8. name: "{{ matrix_user_verification_service_systemd_service_basename }}"
  9. state: stopped
  10. daemon_reload: yes
  11. register: stopping_result
  12. when: "matrix_user_verification_service_service_stat.stat.exists|bool"
  13. - name: Ensure matrix-user-verification-service.service doesn't exist
  14. file:
  15. path: "{{ matrix_systemd_path }}/{{ matrix_user_verification_service_systemd_service_name }}"
  16. state: absent
  17. when: "matrix_user_verification_service_service_stat.stat.exists|bool"
  18. - name: Ensure systemd reloaded after matrix-user-verification-service.service removal
  19. service:
  20. daemon_reload: yes
  21. when: "matrix_user_verification_service_service_stat.stat.exists|bool"
  22. - name: Ensure Matrix user-verification-service paths don't exist
  23. file:
  24. path: "{{ matrix_user_verification_service_base_path }}"
  25. state: absent
  26. - name: Ensure user-verification-service Docker image doesn't exist
  27. docker_image:
  28. name: "{{ matrix_user_verification_service_docker_image }}"
  29. state: absent