From 18d23154381acff0c3998dc8cb2a1a6366e7a34e Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 1 Oct 2018 18:27:54 +0000 Subject: [PATCH] service->systemd --- roles/network/tasks/captive_portal.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/network/tasks/captive_portal.yml b/roles/network/tasks/captive_portal.yml index a5b1c5f89..710310d3f 100644 --- a/roles/network/tasks/captive_portal.yml +++ b/roles/network/tasks/captive_portal.yml @@ -68,9 +68,10 @@ when: py_captive_portal_install and py_captive_portal_enabled - name: Enable captive-portal after copying files - service: + systemd: name: captive-portal.service enabled: yes + daemon-reload: yes when: py_captive_portal_install and py_captive_portal_enabled - name: Enable Apache config file @@ -88,15 +89,16 @@ when: py_captive_portal_enabled and is_debuntu - name: Start captive-portal after copying files - service: + systemd: name: captive-portal.service state: started when: py_captive_portal_install and py_captive_portal_enabled - name: Disable captive-portal after copying files - service: + systemd: name: captive-portal.service enabled: no + daemon-reload: yes when: py_captive_portal_install and not py_captive_portal_enabled - name: Stop captive-portal after copying files