diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-06 19:00:11 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-06 19:00:11 +0000 |
commit | af4cdac5b90197f37079421460297a3a01328e73 (patch) | |
tree | 6ab164138ba9bcf43aa62d9047586b88a44a1587 | |
parent | 221c80c5e22bbc8bf2532e6840d0dc2f9b19d8d5 (diff) | |
parent | 7991928535005ed4c1fbdcd94dece5b0074537a6 (diff) | |
download | v-i-af4cdac5b90197f37079421460297a3a01328e73.tar.gz |
Merge branch 'image-boot-speed' into 'main'
perf: make installer image boot faster by using system-networkd
See merge request larswirzenius/v-i!31
-rw-r--r-- | installer-ansible.yml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |