Skip to content

Commit eb1acde

Browse files
committed
hotfix: permission and fatal error
1 parent 78f26f1 commit eb1acde

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

ansible/roles/dashboard/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
creates: "{{ dashboard_venv_dir }}/bin/activate"
5050
become: true
5151
become_user: "{{ aegis_system_user }}"
52+
environment:
53+
HOME: "{{ dashboard_app_dir }}"
5254

5355

5456
- name: Ensure venv ownership is correct
@@ -67,6 +69,8 @@
6769
virtualenv: "{{ dashboard_venv_dir }}"
6870
become: true
6971
become_user: "{{ aegis_system_user }}"
72+
environment:
73+
HOME: "{{ dashboard_app_dir }}"
7074

7175

7276
- name: Allow control-plane to run system commands without password

ansible/roles/dns/templates/unbound.conf.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ server:
44
interface: {{ dns_listen_address }}
55
port: {{ dns_listen_port }}
66

7+
# Network protocols (disable IPv6 if disabled in kernel to prevent crash)
8+
do-ip4: yes
9+
do-ip6: {{ 'yes' if wg_enable_ipv6 else 'no' }}
10+
do-udp: yes
11+
do-tcp: yes
12+
13+
# Ubuntu default trust anchor for DNSSEC
14+
auto-trust-anchor-file: "/var/lib/unbound/root.key"
15+
716
access-control: {{ dns_allowed_subnet }} allow
817

918
verbosity: 0

ansible/roles/wireguard/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
reload: yes
2323
become: true
2424

25+
- name: Allow services to bind to non-local IPs (prevents Unbound crash on VPN restart)
26+
sysctl:
27+
name: net.ipv4.ip_nonlocal_bind
28+
value: "1"
29+
sysctl_set: yes
30+
state: present
31+
reload: yes
32+
become: true
33+
2534
- name: Show detected default interface
2635
debug:
2736
var: ansible_facts["default_ipv4"]["interface"]

0 commit comments

Comments
 (0)