summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb
diff options
context:
space:
mode:
Diffstat (limited to 'roles/installer/debian/usb')
-rw-r--r--roles/installer/debian/usb/tasks/main.yml6
-rw-r--r--roles/installer/debian/usb/templates/syslinux.cfg.j24
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/installer/debian/usb/tasks/main.yml b/roles/installer/debian/usb/tasks/main.yml
index b9969677..e02f38e6 100644
--- a/roles/installer/debian/usb/tasks/main.yml
+++ b/roles/installer/debian/usb/tasks/main.yml
@@ -40,18 +40,18 @@
- block:
- name: create temporary workdir
tempfile:
- prefix: "usb-install.{{ install_hostname }}."
+ prefix: "usb-install.{{ inventory_hostname }}."
state: directory
register: tmpdir
- name: copy the original initramfs to the usb drive
copy:
src: "{{ debian_installer_target_dir }}/initrd.gz"
- dest: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
+ dest: "{{ usb_install_path }}/initrd.{{ inventory_hostname }}.gz"
- name: generate host specific initial ramdisk
vars:
- preseed_initrd: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
+ preseed_initrd: "{{ usb_install_path }}/initrd.{{ inventory_hostname }}.gz"
preseed_tmpdir: "{{ tmpdir.path }}"
import_role:
name: installer/debian/preseed
diff --git a/roles/installer/debian/usb/templates/syslinux.cfg.j2 b/roles/installer/debian/usb/templates/syslinux.cfg.j2
index 4531c1f9..98890372 100644
--- a/roles/installer/debian/usb/templates/syslinux.cfg.j2
+++ b/roles/installer/debian/usb/templates/syslinux.cfg.j2
@@ -1,5 +1,5 @@
{% if (ansible_play_hosts_all | length) == 1 %}
-DEFAULT {{ install_hostname }}
+DEFAULT {{ inventory_hostname }}
TIMEOUT 100
PROMPT 1
SAY *****************************************
@@ -7,7 +7,7 @@ SAY **
SAY ** Distro: {{ install_distro }}
SAY ** Codename: {{ install_codename }}
SAY **
-SAY ** will be booting automated installer for {{ install_hostname }} in 10s ...
+SAY ** will be booting automated installer for {{ inventory_hostname }} in 10s ...
SAY **
{% else %}
DEFAULT menu.c32