Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

31 linhas
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