From 1039639a167d34b50de4ee187e220f2f55fae0fd Mon Sep 17 00:00:00 2001 From: meaz Date: Fri, 8 Mar 2024 18:05:50 +0100 Subject: [PATCH] restart libretranslate when updated --- README.md | 2 -- tasks/installapp.yml | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd6b1f7..ca225e9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tasks/installapp.yml b/tasks/installapp.yml index fa5c48c..d851e51 100644 --- a/tasks/installapp.yml +++ b/tasks/installapp.yml @@ -36,4 +36,5 @@ state: "latest" become: yes become_user: '{{ libretranslate_user }}' - when: libretranslate_installed.stdout != libretranslate_version \ No newline at end of file + when: libretranslate_installed.stdout != libretranslate_version + notify: restart libretranslate