Made directory variables for /etc/systemd/system , /etc/cron.d , /usr/local/bin
This commit is contained in:
@ -75,7 +75,7 @@
|
||||
- name: Ensure matrix-riot-web.service installed
|
||||
template:
|
||||
src: "{{ role_path }}/templates/systemd/matrix-riot-web.service.j2"
|
||||
dest: "/etc/systemd/system/matrix-riot-web.service"
|
||||
dest: "{{ matrix_systemd_path }}/matrix-riot-web.service"
|
||||
mode: 0644
|
||||
register: matrix_riot_web_systemd_service_result
|
||||
when: matrix_riot_web_enabled|bool
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
- name: Check existence of matrix-riot-web service
|
||||
stat:
|
||||
path: "/etc/systemd/system/matrix-riot-web.service"
|
||||
path: "{{ matrix_systemd_path }}/matrix-riot-web.service"
|
||||
register: matrix_riot_web_service_stat
|
||||
when: "not matrix_riot_web_enabled|bool"
|
||||
|
||||
@ -105,7 +105,7 @@
|
||||
|
||||
- name: Ensure matrix-riot-web.service doesn't exist
|
||||
file:
|
||||
path: "/etc/systemd/system/matrix-riot-web.service"
|
||||
path: "{{ matrix_systemd_path }}/matrix-riot-web.service"
|
||||
state: absent
|
||||
when: "not matrix_riot_web_enabled|bool and matrix_riot_web_service_stat.stat.exists"
|
||||
|
||||
|
Reference in New Issue
Block a user