Skip to content

Commit 5a6ac8e

Browse files
set dns and Ensure {{ wireguard_dir }} directory exists
1 parent fff4752 commit 5a6ac8e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vpn-client/playbooks/deploy-vpn-client.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@
103103

104104
- name: Route the traffic
105105
command: ip route add 10.100.49.2/32 via 10.100.49.10
106+
107+
- name: Set DNS
108+
command: resolvectl dns eth0 8.8.8.8 8.8.8.8
106109

107110
- name: Install wireguard
108111
apt:
@@ -111,6 +114,13 @@
111114
update_cache: true
112115
tags: [ wireguard ]
113116

117+
- name: Ensure {{ wireguard_dir }} directory exists
118+
file:
119+
path: "{{ wireguard_dir }}"
120+
state: directory
121+
mode: '0755'
122+
owner: root
123+
group: root
114124

115125
- name: Generate laptop-private.key
116126
command: wg genkey

0 commit comments

Comments
 (0)