|
|
@ -64,7 +64,7 @@
|
|
|
|
- name: Ensure matrix-corporal.service installed
|
|
|
|
- name: Ensure matrix-corporal.service installed
|
|
|
|
ansible.builtin.template:
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "{{ role_path }}/templates/systemd/matrix-corporal.service.j2"
|
|
|
|
src: "{{ role_path }}/templates/systemd/matrix-corporal.service.j2"
|
|
|
|
dest: "{{ matrix_systemd_path }}/matrix-corporal.service"
|
|
|
|
dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
|
|
|
mode: 0644
|
|
|
|
mode: 0644
|
|
|
|
register: matrix_corporal_systemd_service_result
|
|
|
|
register: matrix_corporal_systemd_service_result
|
|
|
|
when: matrix_corporal_enabled | bool
|
|
|
|
when: matrix_corporal_enabled | bool
|
|
|
@ -81,7 +81,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check existence of matrix-corporal service
|
|
|
|
- name: Check existence of matrix-corporal service
|
|
|
|
ansible.builtin.stat:
|
|
|
|
ansible.builtin.stat:
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-corporal.service"
|
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
|
|
|
register: matrix_corporal_service_stat
|
|
|
|
register: matrix_corporal_service_stat
|
|
|
|
when: "not matrix_corporal_enabled | bool"
|
|
|
|
when: "not matrix_corporal_enabled | bool"
|
|
|
|
|
|
|
|
|
|
|
@ -96,7 +96,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-corporal.service doesn't exist
|
|
|
|
- name: Ensure matrix-corporal.service doesn't exist
|
|
|
|
ansible.builtin.file:
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-corporal.service"
|
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
when: "not matrix_corporal_enabled | bool and matrix_corporal_service_stat.stat.exists"
|
|
|
|
when: "not matrix_corporal_enabled | bool and matrix_corporal_service_stat.stat.exists"
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +110,7 @@
|
|
|
|
path: "{{ item }}"
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
with_items:
|
|
|
|
- "{{ matrix_systemd_path }}/matrix-corporal.service"
|
|
|
|
- "{{ devture_systemd_docker_base_systemd_path }}/matrix-corporal.service"
|
|
|
|
- "{{ matrix_corporal_config_dir_path }}/config.json"
|
|
|
|
- "{{ matrix_corporal_config_dir_path }}/config.json"
|
|
|
|
when: "not matrix_corporal_enabled | bool"
|
|
|
|
when: "not matrix_corporal_enabled | bool"
|
|
|
|
|
|
|
|
|
|
|
|