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.
 
 

19 lines
550 B

  1. ---
  2. - name: Check existence of matrix-sms-bridge service
  3. stat:
  4. path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
  5. register: matrix_sms_bridge_service_stat
  6. - name: Ensure matrix-sms-bridge is stopped
  7. service:
  8. name: matrix-sms-bridge
  9. state: stopped
  10. daemon_reload: yes
  11. when: "matrix_sms_bridge_service_stat.stat.exists"
  12. - name: Ensure matrix-sms-bridge.service doesn't exist
  13. file:
  14. path: "{{ matrix_systemd_path }}/matrix-sms-bridge.service"
  15. state: absent
  16. when: "matrix_sms_bridge_service_stat.stat.exists"