From 5902805ac944ef6fe83508947de197678b8a86bd Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 22 Oct 2020 20:22:57 +0200 Subject: Reintroduce resolv.conf, it is needed + change DNS from FDN (broken) to Free --- os/config/roles/network/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'os/config/roles/network/tasks') diff --git a/os/config/roles/network/tasks/main.yml b/os/config/roles/network/tasks/main.yml index caa6bff..8b6d92d 100644 --- a/os/config/roles/network/tasks/main.yml +++ b/os/config/roles/network/tasks/main.yml @@ -7,6 +7,9 @@ - name: "Deploy systemd-networkd configuration" template: src=en.network dest=/etc/systemd/network/en.network +- name: "Deploy resolv.conf (the DNS section in systemd-networkd requires systemd-resolved...)" + template: src=resolv.conf dest=/etc/resolv.conf + - name: "Activate IP forwarding" sysctl: name: net.ipv4.ip_forward -- cgit v1.2.3