mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
change name of service, and test
This commit is contained in:
parent
270fbe19d5
commit
ac6c854646
3 changed files with 8 additions and 8 deletions
|
@ -51,8 +51,8 @@
|
|||
|
||||
- name: Copy Captive Portal service file
|
||||
template:
|
||||
src: roles/network/templates/captive-portal/captive-portal.service.j2
|
||||
dest: /etc/systemd/system/captive-portal.service
|
||||
src: roles/network/templates/captive-portal/py-captive-portal.service.j2
|
||||
dest: /etc/systemd/system/py-captive-portal.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
@ -69,7 +69,7 @@
|
|||
|
||||
- name: Enable captive-portal after copying files
|
||||
systemd:
|
||||
name: captive-portal.service
|
||||
name: py-captive-portal.service
|
||||
enabled: yes
|
||||
daemon-reload: yes
|
||||
when: py_captive_portal_install and py_captive_portal_enabled
|
||||
|
@ -90,20 +90,20 @@
|
|||
|
||||
- name: Start captive-portal after copying files
|
||||
systemd:
|
||||
name: captive-portal.service
|
||||
name: py-captive-portal.service
|
||||
state: started
|
||||
when: py_captive_portal_install and py_captive_portal_enabled
|
||||
|
||||
- name: Disable captive-portal after copying files
|
||||
systemd:
|
||||
name: captive-portal.service
|
||||
name: py-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
|
||||
service:
|
||||
name: captive-portal.service
|
||||
name: py-captive-portal.service
|
||||
state: stopped
|
||||
when: py_captive_portal_install and not py_captive_portal_enabled
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ block_DNS: False
|
|||
|
||||
# dnsmasq
|
||||
dnsmasq_install: True
|
||||
dnsmasq_enabled: False
|
||||
dnsmasq_enabled: True
|
||||
|
||||
# Enable in local_vars.yml AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network"
|
||||
dns_jail_enabled: False
|
||||
|
@ -119,7 +119,7 @@ captive_portal_enabled: False
|
|||
|
||||
# Simple python Captive Portal, that @m-anish & @jvonau are experimenting with in July 2018: github.com/iiab/iiab/pull/870
|
||||
py_captive_portal_install: True
|
||||
py_captive_portal_enabled: False
|
||||
py_captive_portal_enabled: True
|
||||
|
||||
# Squid
|
||||
squid_install: False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue