diff options
Diffstat (limited to 'roles/preseed/tasks')
-rw-r--r-- | roles/preseed/tasks/main.yml | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/roles/preseed/tasks/main.yml b/roles/preseed/tasks/main.yml deleted file mode 100644 index b1b5d275..00000000 --- a/roles/preseed/tasks/main.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -- name: Copy initramfs into position - copy: - remote_src: yes - src: "{{ installer_path | mandatory }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/initrd.gz" - dest: "{{ preseed_tmpdir }}/initrd.preseed.gz" - -- name: Generate preseed file - template: - src: "preseed_{{ hostvars[hostname].preseed_template_name | default(install_distro + '-' + install_codename) }}.cfg.j2" - dest: "{{ preseed_tmpdir }}/preseed.cfg" - -- name: Generate authorized_keys file - authorized_key: - user: root - manage_dir: no - path: "{{ preseed_tmpdir }}/authorized_keys" - key: "{{ ssh_keys_root | join('\n') }}" - -- name: force net interface name policy - when: preseed_force_net_ifnames_policy is defined - block: - - name: prepare directories to force network interface name policy - file: - path: "{{ preseed_tmpdir }}/etc/systemd/network" - state: directory - - - name: install link unit to force network interface name policy - copy: - dest: "{{ preseed_tmpdir }}/etc/systemd/network/90-namepolicy.link" - content: | - [Link] - NamePolicy={{ preseed_force_net_ifnames_policy }} - -- name: Inject files into initramfs - shell: cpio -H newc -o | gzip -9 >> 'initrd.preseed.gz' - args: - chdir: "{{ preseed_tmpdir }}" - stdin: | - preseed.cfg - authorized_keys - etc/ - etc/systemd/ - etc/systemd/network/ - etc/systemd/network/90-namepolicy.link - tags: - - skip_ansible_lint |