restart libretranslate when updated

This commit is contained in:
meaz 2024-03-08 18:05:50 +01:00
parent 976f237c1f
commit 1039639a16
Signed by: meaz
GPG key ID: CD7A47B2F1ED43B4
2 changed files with 2 additions and 3 deletions

View file

@ -27,8 +27,6 @@ Then, when you first lauch libretranslate, it downloads all languages packages (
## Updating
You just need to update the `libretranslate_version` var and to run the role to update.
If you want to update language models, restart libretranslate service `service libretranslate restart`
## CHANGELOG
- **05.12.2023** - Add possibility to choose version and to update models

View file

@ -36,4 +36,5 @@
state: "latest"
become: yes
become_user: '{{ libretranslate_user }}'
when: libretranslate_installed.stdout != libretranslate_version
when: libretranslate_installed.stdout != libretranslate_version
notify: restart libretranslate