mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
service->systemd
This commit is contained in:
parent
c91cb6cd32
commit
18d2315438
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue