mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +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
|
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
|
||||||
|
|
Loading…
Reference in a new issue