diff options
-rw-r--r-- | roles/vm-install/tasks/main.yaml | 7 | ||||
-rw-r--r-- | roles/vm-install/templates/preseed_debian-stretch.cfg.j2 | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/roles/vm-install/tasks/main.yaml b/roles/vm-install/tasks/main.yaml index a59e6fe2..22a6a351 100644 --- a/roles/vm-install/tasks/main.yaml +++ b/roles/vm-install/tasks/main.yaml @@ -121,10 +121,3 @@ - name: reenable StrictHostKeyChecking set_fact: ansible_ssh_extra_args: "" - -- name: remove dummy logical volume - lvol: - vg: "{{ inventory_hostname }}" - lv: dummy - state: absent - force: yes diff --git a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 index 8198d71b..c20b607b 100644 --- a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 +++ b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 @@ -1,5 +1,5 @@ ######################################################################### -# Radio Helsinki preseed file for Debian stretch based VMs +# spreadspace preseed file for Debian stretch based VMs ######################################################################### d-i debian-installer/language string en @@ -99,4 +99,6 @@ d-i grub-installer/with_other_os boolean false d-i finish-install/reboot_in_progress note -d-i preseed/late_command string in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo -e '{{ sshserver_root_keys }}' > /root/.ssh/authorized_keys" +d-i preseed/late_command string \ + lvremove -f {{ inventory_hostname }}/dummy; \ + in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo -e '{{ sshserver_root_keys }}' > /root/.ssh/authorized_keys" |