From 7991928535005ed4c1fbdcd94dece5b0074537a6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 6 Aug 2022 21:59:02 +0300 Subject: perf: make installer image boot faster by using system-networkd For some reason, ifupdown was taking over half a minute longer to boot. Sponsored-by: author --- installer-ansible.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/installer-ansible.yml b/installer-ansible.yml index a53d998..5e56d32 100644 --- a/installer-ansible.yml +++ b/installer-ansible.yml @@ -27,6 +27,26 @@ regexp: Storage= line: Storage=volatile + - name: "drop ifupdown interfaces file" + file: + path: /etc/network/interfaces + state: absent + + - name: "enable systemd-networkd" + systemd: + name: systemd-networkd + enabled: true + + - name: "add eth0.network" + copy: + content: | + [Match] + Name=eth0 + + [Network] + DHCP=ipv4 + dest: /etc/systemd/network/eth0.network + - name: "create /root/.ssh" file: state: directory -- cgit v1.2.1