diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-09-17 20:37:22 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-09-17 20:37:22 +0200 |
commit | 3832accbe548e8bec76e5a54bff13d6670cc40af (patch) | |
tree | 1701acd79b7a769ec757a2d0d83a7e3343f1b777 /ansible/plays | |
parent | 8353376b24e6f2c038575c8d378c348c4ee5e092 (diff) | |
download | infra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.gz infra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.bz2 infra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.xz infra-3832accbe548e8bec76e5a54bff13d6670cc40af.zip |
lhn2pi
Diffstat (limited to 'ansible/plays')
-rw-r--r-- | ansible/plays/lhn2pi.yml | 4 | ||||
-rw-r--r-- | ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network | 7 |
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 |