From 48d0df39753037b6688c55a372254ef9ecae5631 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Nov 2020 04:44:34 +0100 Subject: don't use install_hostname variable in roles --- roles/installer/debian/iso/templates/grub.cfg.j2 | 2 +- roles/installer/debian/iso/templates/isolinux.cfg.j2 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/installer/debian/iso/templates') diff --git a/roles/installer/debian/iso/templates/grub.cfg.j2 b/roles/installer/debian/iso/templates/grub.cfg.j2 index d13ca96d..12b8837b 100644 --- a/roles/installer/debian/iso/templates/grub.cfg.j2 +++ b/roles/installer/debian/iso/templates/grub.cfg.j2 @@ -14,7 +14,7 @@ set menu_color_highlight=black/light-gray set timeout=10 set default=0 -menuentry "automated installer for {{ install_hostname }}" { +menuentry "automated installer for {{ inventory_hostname }}" { linux /linux --- auto {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }} initrd /initrd.gz } diff --git a/roles/installer/debian/iso/templates/isolinux.cfg.j2 b/roles/installer/debian/iso/templates/isolinux.cfg.j2 index 0fb43c25..1a758bda 100644 --- a/roles/installer/debian/iso/templates/isolinux.cfg.j2 +++ b/roles/installer/debian/iso/templates/isolinux.cfg.j2 @@ -1,4 +1,4 @@ -DEFAULT {{ install_hostname }} +DEFAULT {{ inventory_hostname }} TIMEOUT 100 PROMPT 1 SAY ***************************************** @@ -6,10 +6,10 @@ 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 ** -LABEL {{ install_hostname }} +LABEL {{ inventory_hostname }} KERNEL linux INITRD initrd.gz APPEND auto fb=false {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }} -- cgit v1.2.3