From 4108d41519d98659ff9c47df4d7b1bdc8967a926 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 12 Jul 2019 02:30:42 +0200 Subject: try workaround to fix change network interface name-policy --- roles/preseed/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'roles/preseed/tasks') diff --git a/roles/preseed/tasks/main.yml b/roles/preseed/tasks/main.yml index 8e00fb82..c32a032e 100644 --- a/roles/preseed/tasks/main.yml +++ b/roles/preseed/tasks/main.yml @@ -17,6 +17,16 @@ path: "{{ preseed_tmpdir }}/authorized_keys" key: "{{ ssh_keys_root | join('\n') }}" +## TODO: make this nicer (only needed für debian buster? does it work with others too?) +- file: + path: "{{ preseed_tmpdir }}/etc/systemd/network" + state: directory +- copy: + dest: "{{ preseed_tmpdir }}/etc/systemd/network/90-namepolicy-path.link" + content: | + [Link] + NamePolicy=path + - name: Inject files into initramfs shell: cpio -H newc -o | gzip -9 >> 'initrd.preseed.gz' args: @@ -24,5 +34,9 @@ stdin: | preseed.cfg authorized_keys + etc/ + etc/systemd/ + etc/systemd/network/ + etc/systemd/network/90-namepolicy-path.link tags: - skip_ansible_lint -- cgit v1.2.3