mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 10:04:46 +08:00
Rename service from matrix-maubot to matrix-bot-maubot
This commit is contained in:
parent
d5c82a5221
commit
6ed105b830
@ -1,5 +1,5 @@
|
||||
---
|
||||
|
||||
- set_fact:
|
||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-maubot.service'] }}"
|
||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-maubot.service'] }}"
|
||||
when: matrix_bot_maubot_enabled|bool
|
||||
|
@ -95,19 +95,19 @@
|
||||
pull: true
|
||||
when: "matrix_bot_maubot_container_image_self_build|bool"
|
||||
|
||||
- name: Ensure matrix-maubot.service installed
|
||||
- name: Ensure matrix-bot-maubot.service installed
|
||||
template:
|
||||
src: "{{ role_path }}/templates/systemd/matrix-maubot.service.j2"
|
||||
dest: "{{ matrix_systemd_path }}/matrix-maubot.service"
|
||||
src: "{{ role_path }}/templates/systemd/matrix-bot-maubot.service.j2"
|
||||
dest: "{{ matrix_systemd_path }}/matrix-bot-maubot.service"
|
||||
mode: 0644
|
||||
register: matrix_bot_maubot_systemd_service_result
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-maubot.service installation
|
||||
- name: Ensure systemd reloaded after matrix-bot-maubot.service installation
|
||||
service:
|
||||
daemon_reload: true
|
||||
when: "matrix_bot_maubot_systemd_service_result.changed|bool"
|
||||
|
||||
- name: Ensure matrix-maubot.service restarted, if necessary
|
||||
- name: Ensure matrix-bot-maubot.service restarted, if necessary
|
||||
service:
|
||||
name: "matrix-maubot.service"
|
||||
name: "matrix-bot-maubot.service"
|
||||
state: restarted
|
||||
|
@ -35,7 +35,7 @@ ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill
|
||||
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-maubot 2>/dev/null || true'
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
SyslogIdentifier=matrix-maubot
|
||||
SyslogIdentifier=matrix-bot-maubot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user