From 65b712b4ef32cb623604ce096821dcc25202ca47 Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Wed, 1 Apr 2026 11:12:54 +0100 Subject: [PATCH] Bring lighttpd back in raspap, disable raspap api service --- ansible/install-rasp-ap.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/ansible/install-rasp-ap.yml b/ansible/install-rasp-ap.yml index fd537bb..e9e390a 100644 --- a/ansible/install-rasp-ap.yml +++ b/ansible/install-rasp-ap.yml @@ -9,6 +9,12 @@ raspap_adblock: 0 tasks: + - name: ensure lighttpd listens on port 8080 + ansible.builtin.lineinfile: + path: /etc/lighttpd/lighttpd.conf + regexp: '^server.port' + line: server.port=8080 + - name: Check if RaspAP is already installed ansible.builtin.stat: path: /var/www/html/raspap @@ -81,6 +87,13 @@ - "set-hostapd-iface.service" - "avahi-daemon.service" + - name: Disable service raspapd restapi service + ansible.builtin.file: + path: "/etc/systemd/system/multi-user.target.wants/{{ item }}" + state: absent + with_items: + - "restapi.service" + - name: Copy dnsmasq config ansible.builtin.template: src: "butterbox-dnsmasq.conf.j2" @@ -88,13 +101,3 @@ owner: root group: root mode: '0644' - - - name: Restart service raspapd, issue daemon-reload to pick up config changes - ansible.builtin.systemd_service: - state: restarted - daemon_reload: true - name: "{{ item }}" - when: not (is_vmdb2 | bool) - with_items: - - raspapd - - set-hostapd-iface