summaryrefslogtreecommitdiff
path: root/roles/installer/debian/preseed/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
commit17077868e615fa7115abdb03a5af4662ab0a3679 (patch)
tree22cb752792c3410bcfe8ce856b9746cad1ccf8d3 /roles/installer/debian/preseed/tasks/main.yml
parentremove spreadspace k8s-test cluster (diff)
refactor all install roles ans playbooks to work with new variable install_hostname
Diffstat (limited to 'roles/installer/debian/preseed/tasks/main.yml')
-rw-r--r--roles/installer/debian/preseed/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/installer/debian/preseed/tasks/main.yml b/roles/installer/debian/preseed/tasks/main.yml
index b1b5d275..aa71335e 100644
--- a/roles/installer/debian/preseed/tasks/main.yml
+++ b/roles/installer/debian/preseed/tasks/main.yml
@@ -2,12 +2,12 @@
- 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"
+ src: "{{ installer_path | mandatory }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[install_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"
+ src: "preseed_{{ hostvars[install_hostname].preseed_template_name | default(install_distro + '-' + install_codename) }}.cfg.j2"
dest: "{{ preseed_tmpdir }}/preseed.cfg"
- name: Generate authorized_keys file