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.
 
 

37 linhas
1012 B

  1. ---
  2. - name: Check existence of matrix-ntfy service
  3. ansible.builtin.stat:
  4. path: "{{ matrix_systemd_path }}/matrix-ntfy.service"
  5. register: matrix_ntfy_service_stat
  6. - name: Ensure matrix-ntfy is stopped
  7. ansible.builtin.service:
  8. name: matrix-ntfy
  9. state: stopped
  10. enabled: false
  11. daemon_reload: true
  12. register: stopping_result
  13. when: "matrix_ntfy_service_stat.stat.exists"
  14. - name: Ensure matrix-ntfy.service doesn't exist
  15. ansible.builtin.file:
  16. path: "{{ matrix_systemd_path }}/matrix-ntfy.service"
  17. state: absent
  18. when: "matrix_ntfy_service_stat.stat.exists"
  19. - name: Ensure systemd reloaded after matrix-ntfy.service removal
  20. ansible.builtin.service:
  21. daemon_reload: true
  22. when: "matrix_ntfy_service_stat.stat.exists"
  23. - name: Ensure matrix-ntfy path doesn't exist
  24. ansible.builtin.file:
  25. path: "{{ matrix_ntfy_base_path }}"
  26. state: absent
  27. - name: Ensure ntfy Docker image doesn't exist
  28. docker_image:
  29. name: "{{ matrix_ntfy_docker_image }}"
  30. state: absent