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.
 
 

25 line
726 B

  1. ---
  2. - name: Check existence of matrix-heisenbridge service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service"
  5. register: matrix_heisenbridge_service_stat
  6. - name: Ensure matrix-heisenbridge is stopped
  7. service:
  8. name: heisenbridge
  9. state: stopped
  10. daemon_reload: yes
  11. when: "matrix_heisenbridge_service_stat.stat.exists"
  12. - name: Ensure matrix-heisenbridge.service doesn't exist
  13. file:
  14. path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service"
  15. state: absent
  16. when: "matrix_heisenbridge_service_stat.stat.exists"
  17. - name: Ensure systemd reloaded after matrix-heisenbridge.service removal
  18. service:
  19. daemon_reload: yes
  20. when: "matrix_heisenbridge_service_stat.stat.exists"