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