1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

service->systemd

This commit is contained in:
George Hunt 2018-10-01 18:27:54 +00:00
parent c91cb6cd32
commit 18d2315438

View file

@ -68,9 +68,10 @@
when: py_captive_portal_install and py_captive_portal_enabled when: py_captive_portal_install and py_captive_portal_enabled
- name: Enable captive-portal after copying files - name: Enable captive-portal after copying files
service: systemd:
name: captive-portal.service name: captive-portal.service
enabled: yes enabled: yes
daemon-reload: yes
when: py_captive_portal_install and py_captive_portal_enabled when: py_captive_portal_install and py_captive_portal_enabled
- name: Enable Apache config file - name: Enable Apache config file
@ -88,15 +89,16 @@
when: py_captive_portal_enabled and is_debuntu when: py_captive_portal_enabled and is_debuntu
- name: Start captive-portal after copying files - name: Start captive-portal after copying files
service: systemd:
name: captive-portal.service name: captive-portal.service
state: started state: started
when: py_captive_portal_install and py_captive_portal_enabled when: py_captive_portal_install and py_captive_portal_enabled
- name: Disable captive-portal after copying files - name: Disable captive-portal after copying files
service: systemd:
name: captive-portal.service name: captive-portal.service
enabled: no enabled: no
daemon-reload: yes
when: py_captive_portal_install and not py_captive_portal_enabled when: py_captive_portal_install and not py_captive_portal_enabled
- name: Stop captive-portal after copying files - name: Stop captive-portal after copying files