mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 12:47:39 +01:00
Fix uninstall (did not remove service)
This commit is contained in:
parent
135096e53a
commit
a842e9cd1d
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user