aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/plays')
-rw-r--r--ansible/plays/lhn2pi.yml4
-rw-r--r--ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network7
2 files changed, 11 insertions, 0 deletions
diff --git a/ansible/plays/lhn2pi.yml b/ansible/plays/lhn2pi.yml
new file mode 100644
index 0000000..614b926
--- /dev/null
+++ b/ansible/plays/lhn2pi.yml
@@ -0,0 +1,4 @@
+- hosts:
+ - lhn2pi
+ roles:
+ - systemd-networkd
diff --git a/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network b/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network
new file mode 100644
index 0000000..f17b3f9
--- /dev/null
+++ b/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network
@@ -0,0 +1,7 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=ipv4
+Address={{ ipam6.networks.lhn2_dn42.hosts.lhn2pi }}
+# IPv6Forwarding=yes # needs newer systemd