Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

29 righe
845 B

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