diff options
Diffstat (limited to 'roles/preseed/tasks')
-rw-r--r-- | roles/preseed/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
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 |