|
|
@ -5,22 +5,22 @@
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-maubot.service"
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-maubot.service"
|
|
|
|
register: matrix_bot_maubot_service_stat
|
|
|
|
register: matrix_bot_maubot_service_stat
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-maubot is stopped
|
|
|
|
- name: Ensure matrix-bot-maubot is stopped
|
|
|
|
service:
|
|
|
|
service:
|
|
|
|
name: matrix-maubot
|
|
|
|
name: matrix-bot-maubot
|
|
|
|
state: stopped
|
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
|
|
|
daemon_reload: true
|
|
|
|
register: stopping_result
|
|
|
|
register: stopping_result
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-maubot.service doesn't exist
|
|
|
|
- name: Ensure matrix-bot-maubot.service doesn't exist
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-maubot.service"
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-bot-maubot.service"
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure systemd reloaded after matrix-maubot.service removal
|
|
|
|
- name: Ensure systemd reloaded after matrix-bot-maubot.service removal
|
|
|
|
service:
|
|
|
|
service:
|
|
|
|
daemon_reload: true
|
|
|
|
daemon_reload: true
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
|
|
|