1 - name: Copy initramfs into position
4 src: "{{ debian_installer_path | mandatory }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/initrd.gz"
5 dest: "{{ preseed_tmpdir }}/initrd.preseed.gz"
7 - name: Generate preseed file
9 src: "preseed_{{ install_distro }}-{{ install_codename }}.cfg.j2"
10 dest: "{{ preseed_tmpdir }}/preseed.cfg"
12 - name: Generate authorized_keys file
16 path: "{{ preseed_tmpdir }}/authorized_keys"
17 key: "{{ ssh_users_root | user_ssh_keys(users) | join('\n') }}"
19 - name: Inject files into initramfs
20 shell: cpio -H newc -o | gzip -9 >> 'initrd.preseed.gz'
22 chdir: "{{ preseed_tmpdir }}"