Made directory variables for /etc/systemd/system , /etc/cron.d , /usr/local/bin

This commit is contained in:
mooomooo
2020-03-24 11:27:58 -07:00
parent e5849801c6
commit eebc6e13f8
40 changed files with 92 additions and 89 deletions

View File

@ -31,7 +31,7 @@
- name: Ensure matrix-goofys.service installed
template:
src: "{{ role_path }}/templates/goofys/systemd/matrix-goofys.service.j2"
dest: "/etc/systemd/system/matrix-goofys.service"
dest: "{{ matrix_systemd_path }}/matrix-goofys.service"
mode: 0644
register: matrix_goofys_systemd_service_result

View File

@ -1,6 +1,6 @@
- name: Check existence of matrix-goofys service
stat:
path: "/etc/systemd/system/matrix-goofys.service"
path: "{{ matrix_systemd_path }}/matrix-goofys.service"
register: matrix_goofys_service_stat
- name: Ensure matrix-goofys is stopped
@ -13,7 +13,7 @@
- name: Ensure matrix-goofys.service doesn't exist
file:
path: "/etc/systemd/system/matrix-goofys.service"
path: "{{ matrix_systemd_path }}/matrix-goofys.service"
state: absent
when: "matrix_goofys_service_stat.stat.exists"