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.
 
 

23 rivejä
696 B

  1. ---
  2. - name: Check existence of matrix-dendrite service
  3. ansible.builtin.stat:
  4. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-dendrite.service"
  5. register: matrix_dendrite_service_stat
  6. - when: matrix_dendrite_service_stat.stat.exists | bool
  7. block:
  8. - name: Ensure matrix-dendrite is stopped
  9. ansible.builtin.service:
  10. name: matrix-dendrite
  11. state: stopped
  12. daemon_reload: true
  13. - name: Ensure Dendrite paths don't exist
  14. ansible.builtin.file:
  15. path: "{{ item }}"
  16. state: absent
  17. with_items:
  18. - "{{ devture_systemd_docker_base_systemd_path }}/matrix-dendrite.service"
  19. - "{{ matrix_dendrite_bin_path }}"