mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-10-26 21:10:41 +01:00
Replace most import_tasks calls with include_tasks for improved performance
This commit is contained in:
21
roles/custom/matrix-grafana/tasks/setup_uninstall.yml
Normal file
21
roles/custom/matrix-grafana/tasks/setup_uninstall.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
|
||||
- name: Check existence of matrix-grafana service
|
||||
ansible.builtin.stat:
|
||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||
register: matrix_grafana_service_stat
|
||||
|
||||
- when: matrix_grafana_service_stat.stat.exists | bool
|
||||
block:
|
||||
- name: Ensure matrix-grafana is stopped
|
||||
ansible.builtin.service:
|
||||
name: matrix-grafana
|
||||
state: stopped
|
||||
enabled: false
|
||||
daemon_reload: true
|
||||
register: stopping_result
|
||||
|
||||
- name: Ensure matrix-grafana.service doesn't exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||
state: absent
|
||||
Reference in New Issue
Block a user