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.
 
 

31 rivejä
852 B

  1. ---
  2. - name: Check existence of matrix-dendrite service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-dendrite.service"
  5. register: matrix_dendrite_service_stat
  6. - name: Ensure matrix-dendrite is stopped
  7. 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. 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. 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