From 201681eb6460ca10a9a15fade9b29435f49807ca Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 1 Aug 2019 15:32:46 -0400 Subject: [PATCH] kiwix-serve systemd cleanup, for PR #1913 --- roles/kiwix/tasks/kiwix_install.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/kiwix/tasks/kiwix_install.yml b/roles/kiwix/tasks/kiwix_install.yml index 309b53530..613ee1b9a 100644 --- a/roles/kiwix/tasks/kiwix_install.yml +++ b/roles/kiwix/tasks/kiwix_install.yml @@ -109,14 +109,15 @@ when: is_debuntu | bool - name: Enable & Restart 'kiwix-serve' service - service: + systemd: + daemon_reload: yes name: kiwix-serve enabled: yes state: restarted when: kiwix_enabled | bool - name: Disable 'kiwix-serve' service - service: + systemd: name: kiwix-serve enabled: no state: stopped