mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-24 18:08:28 +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"
|
||||
register: matrix_bot_maubot_service_stat
|
||||
|
||||
- name: Ensure matrix-maubot is stopped
|
||||
- name: Ensure matrix-bot-maubot is stopped
|
||||
service:
|
||||
name: matrix-maubot
|
||||
name: matrix-bot-maubot
|
||||
state: stopped
|
||||
enabled: false
|
||||
daemon_reload: true
|
||||
register: stopping_result
|
||||
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:
|
||||
path: "{{ matrix_systemd_path }}/matrix-maubot.service"
|
||||
path: "{{ matrix_systemd_path }}/matrix-bot-maubot.service"
|
||||
state: absent
|
||||
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:
|
||||
daemon_reload: true
|
||||
when: "matrix_bot_maubot_service_stat.stat.exists|bool"
|
||||
|
Loading…
Reference in New Issue
Block a user