Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

26 rader
926 B

  1. ---
  2. - name: Check existence of matrix-mautrix-googlechat service
  3. ansible.builtin.stat:
  4. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mautrix-googlechat.service"
  5. register: matrix_mautrix_googlechat_service_stat
  6. - name: Ensure matrix-mautrix-googlechat is stopped
  7. ansible.builtin.service:
  8. name: matrix-mautrix-googlechat
  9. state: stopped
  10. enabled: false
  11. daemon_reload: true
  12. when: "matrix_mautrix_googlechat_service_stat.stat.exists"
  13. - name: Ensure matrix-mautrix-googlechat.service doesn't exist
  14. ansible.builtin.file:
  15. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-mautrix-googlechat.service"
  16. state: absent
  17. when: "matrix_mautrix_googlechat_service_stat.stat.exists"
  18. - name: Ensure systemd reloaded after matrix-mautrix-googlechat.service removal
  19. ansible.builtin.service:
  20. daemon_reload: true
  21. when: "matrix_mautrix_googlechat_service_stat.stat.exists"