ansible/preseed: Fixup access to the `install` object
authornicoo <nicoo@realraum.at>
Sat, 24 Nov 2018 15:53:13 +0000 (16:53 +0100)
committernicoo <nicoo@realraum.at>
Sat, 24 Nov 2018 23:30:26 +0000 (00:30 +0100)
ansible/roles/preseed/tasks/main.yml

index d458d49..e8e62e7 100644 (file)
@@ -10,7 +10,7 @@
     - name: Copy initramfs into position
       copy:
         remote_src: yes
-        src: "{{ debian_installer_path | mandatory }}/{{ distro }}-{{ distcodename }}/{{ install.arch | default('amd64') }}/initrd.gz"
+        src: "{{ debian_installer_path | mandatory }}/{{ distro }}-{{ distcodename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/initrd.gz"
         dest: "{{ initramfs }}"
 
     - name: Generate preseed file