diff --git a/roles/captive-portal/tasks/main.yml b/roles/captive-portal/tasks/main.yml index a5b9bda02..719740860 100644 --- a/roles/captive-portal/tasks/main.yml +++ b/roles/captive-portal/tasks/main.yml @@ -43,13 +43,13 @@ - name: Run iiab-uncatch to generate diversion lists for dnsmasq and apache2 shell: /usr/bin/iiab-uncatch -- name: Install systemd unit file captive-portal.service from template - template: - src: roles/captive-portal/templates/captive-portal.service.j2 - dest: /etc/systemd/system/captive-portal.service - owner: root - group: root - mode: 0644 +#- name: Install systemd unit file captive-portal.service from template +# template: +# src: roles/captive-portal/templates/captive-portal.service.j2 +# dest: /etc/systemd/system/captive-portal.service +# owner: root +# group: root +# mode: 0644 - name: Install Apache's captive-portal.conf from template if captive_portal_enabled template: @@ -74,20 +74,20 @@ state: link when: captive_portal_enabled and is_debuntu -- name: Enable & Start systemd service captive-portal.service if captive_portal_enabled - systemd: - name: captive-portal.service - daemon-reload: yes - enabled: yes - state: started - when: captive_portal_enabled +#- name: Enable & Start systemd service captive-portal.service if captive_portal_enabled +# systemd: +# name: captive-portal.service +# daemon-reload: yes +# enabled: yes +# state: started +# when: captive_portal_enabled -- name: Disable & Stop captive-portal.service if not captive_portal_enabled - systemd: - name: captive-portal.service - enabled: no - state: stopped - when: not captive_portal_enabled +#- name: Disable & Stop captive-portal.service if not captive_portal_enabled +# systemd: +# name: captive-portal.service +# enabled: no +# state: stopped +# when: not captive_portal_enabled - name: Disable Apache's captive-portal.conf if not captive_portal_enabled (debuntu) file: