matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
This commit is contained in:
@ -78,7 +78,7 @@
|
||||
- name: Ensure matrix-grafana.service installed
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/systemd/matrix-grafana.service.j2"
|
||||
dest: "{{ matrix_systemd_path }}/matrix-grafana.service"
|
||||
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||
mode: 0644
|
||||
register: matrix_grafana_systemd_service_result
|
||||
when: matrix_grafana_enabled | bool
|
||||
@ -94,7 +94,7 @@
|
||||
|
||||
- name: Check existence of matrix-grafana service
|
||||
ansible.builtin.stat:
|
||||
path: "{{ matrix_systemd_path }}/matrix-grafana.service"
|
||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||
register: matrix_grafana_service_stat
|
||||
|
||||
- name: Ensure matrix-grafana is stopped
|
||||
@ -108,7 +108,7 @@
|
||||
|
||||
- name: Ensure matrix-grafana.service doesn't exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_systemd_path }}/matrix-grafana.service"
|
||||
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-grafana.service"
|
||||
state: absent
|
||||
when: "not matrix_grafana_enabled | bool and matrix_grafana_service_stat.stat.exists"
|
||||
|
||||
|
Reference in New Issue
Block a user