Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

32 řádky
1.1 KiB

  1. ---
  2. - name: Check existence of matrix-redis service
  3. ansible.builtin.stat:
  4. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-redis.service"
  5. register: matrix_redis_service_stat
  6. - when: matrix_redis_service_stat.stat.exists | bool
  7. block:
  8. - name: Ensure matrix-redis is stopped
  9. ansible.builtin.service:
  10. name: matrix-redis
  11. state: stopped
  12. enabled: false
  13. daemon_reload: true
  14. - name: Ensure matrix-redis.service doesn't exist
  15. ansible.builtin.file:
  16. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-redis.service"
  17. state: absent
  18. - name: Check existence of matrix-redis local data path
  19. ansible.builtin.stat:
  20. path: "{{ matrix_redis_data_path }}"
  21. register: matrix_redis_data_path_stat
  22. # We just want to notify the user. Deleting data is too destructive.
  23. - name: Notify if matrix-redis local data remains
  24. ansible.builtin.debug:
  25. msg: "Note: You are not using a local redis instance, but some old data remains from before in `{{ matrix_redis_data_path }}`. Feel free to delete it."
  26. when: matrix_redis_data_path_stat.stat.exists | bool