Commit d12b3565 authored by Florian Pritz's avatar Florian Pritz
Browse files

Move network config to common



This allows to change it after deployment
Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 3524c76d
---
ipv4_address: "88.198.91.70"
ipv6_address: "2a01:4f8:160:6087::1/128"
ipv4_gateway: "88.198.91.65"
ipv6_gateway: "fe80::1"
filesystem: btrfs
......@@ -8,10 +8,5 @@
remote_user: root
vars:
- hostname: orion
ipv4_address: "88.198.91.70"
ipv6_address: "2a01:4f8:160:6087::1/128"
ipv4_gateway: "88.198.91.65"
ipv6_gateway: "fe80::1"
filesystem: btrfs
roles:
- install_arch
---
- name: restart networkd
service: name=systemd-networkd state=restarted
......@@ -32,3 +32,8 @@
- name: generate ssh key for root
command: ssh-keygen -b 4096 -N "" -f /root/.ssh/id_rsa creates="/root/.ssh/id_rsa"
- name: configure network
template: src=10-static-ethernet.network.j2 dest=/etc/systemd/network/10-static-ethernet.network owner=root group=root mode=0644
notify:
- restart networkd
[Match]
Name=e*
[Network]
DNS=213.133.98.98
DNS=213.133.99.99
DNS=213.133.100.100
Address={{ ipv4_address }}
Address={{ ipv6_address }}
Gateway={{ ipv4_gateway }}
Gateway={{ ipv6_gateway }}
[Match]
Name=e*
[Network]
DNS=213.133.98.98
DNS=213.133.99.99
DNS=213.133.100.100
Address={{ ipv4_address }}
Address={{ ipv6_address }}
Gateway={{ ipv4_gateway }}
Gateway={{ ipv6_gateway }}
../../common/templates/10-static-ethernet.network.j2
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment