Bring lighttpd back in raspap, disable raspap api service
This commit is contained in:
parent
bdddd161cd
commit
65b712b4ef
1 changed files with 13 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue