Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

27 行
845 B

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