Bring lighttpd back in raspap, disable raspap api service

This commit is contained in:
Ana Custura 2026-04-01 11:12:54 +01:00
parent bdddd161cd
commit 65b712b4ef

View file

@ -9,6 +9,12 @@
raspap_adblock: 0 raspap_adblock: 0
tasks: 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 - name: Check if RaspAP is already installed
ansible.builtin.stat: ansible.builtin.stat:
path: /var/www/html/raspap path: /var/www/html/raspap
@ -81,6 +87,13 @@
- "set-hostapd-iface.service" - "set-hostapd-iface.service"
- "avahi-daemon.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 - name: Copy dnsmasq config
ansible.builtin.template: ansible.builtin.template:
src: "butterbox-dnsmasq.conf.j2" src: "butterbox-dnsmasq.conf.j2"
@ -88,13 +101,3 @@
owner: root owner: root
group: root group: root
mode: '0644' 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