aboutsummaryrefslogtreecommitdiff
path: root/os/config/roles/network/tasks
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-22 20:22:57 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-22 20:22:57 +0200
commit5902805ac944ef6fe83508947de197678b8a86bd (patch)
treec8776d55ad6151861615331e54b0aa34c9b9f4c2 /os/config/roles/network/tasks
parente465d65a27f31c1e00b1cf8ebd2d3972d192d99a (diff)
downloadinfrastructure-5902805ac944ef6fe83508947de197678b8a86bd.tar.gz
infrastructure-5902805ac944ef6fe83508947de197678b8a86bd.zip
Reintroduce resolv.conf, it is needed + change DNS from FDN (broken) to Free
Diffstat (limited to 'os/config/roles/network/tasks')
-rw-r--r--os/config/roles/network/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
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