diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-07-12 02:30:42 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-07-12 02:30:42 +0200 |
commit | 4108d41519d98659ff9c47df4d7b1bdc8967a926 (patch) | |
tree | f7b72a912d894d7a64b81f6bb763c3a91b09e9a9 /roles/preseed/tasks/main.yml | |
parent | addd host: ch-gw-lan (diff) |
try workaround to fix change network interface name-policy
Diffstat (limited to 'roles/preseed/tasks/main.yml')
-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 |