Skip to content

Commit b04457b

Browse files
committed
fix: alpine resolv.conf overwriting tailscale dns
1 parent cc649fb commit b04457b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

ansible/roles/tailscale/tasks/install.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
line: "http://dl-2.alpinelinux.org/alpine/edge/community"
77
state: present
88

9-
- name: Install dhclient and tailscale
9+
# https://tailscale.com/kb/1188/linux-dns#dhcp-dhclient-overwriting-etcresolvconf
10+
- name: Disable overwriting resolv.conf
11+
ansible.builtin.lineinfile:
12+
dest: /etc/udhcpc/udhcpc.conf
13+
regexp: "^#?RESOLV_CONF=\"no\""
14+
line: "RESOLV_CONF=\"no\""
15+
state: present
16+
17+
- name: Install tailscale
1018
ansible.builtin.package:
11-
name:
12-
- dhclient # https://tailscale.com/kb/1188/linux-dns#dhcp-dhclient-overwriting-etcresolvconf
13-
- tailscale
19+
name: tailscale
1420
state: latest
1521
update_cache: yes

0 commit comments

Comments
 (0)