1
0
Fork 0
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:
George Hunt 2018-10-03 16:47:22 +00:00
parent 270fbe19d5
commit ac6c854646
3 changed files with 8 additions and 8 deletions

View file

@ -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