From 3832accbe548e8bec76e5a54bff13d6670cc40af Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Sep 2024 20:37:22 +0200 Subject: lhn2pi --- ansible/plays/lhn2pi.yml | 4 ++++ ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 ansible/plays/lhn2pi.yml create mode 100644 ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network (limited to 'ansible/plays') 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 -- cgit v1.2.3