summaryrefslogtreecommitdiff
path: root/common/usb-install.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-07-01 13:23:12 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-07-01 13:23:12 +0200
commitc05e1ca70925e9e68788718f05fca0f13a13bb44 (patch)
tree32669010087880ad8a7ca3adc31dc9dc27fb4d61 /common/usb-install.yml
parentuse nopersistent kernel command line at ubunut/iso installer as well (diff)
make new ubuntu-installer selectable by (usb|iso)-install.yml playbooks
Diffstat (limited to 'common/usb-install.yml')
-rw-r--r--common/usb-install.yml24
1 files changed, 13 insertions, 11 deletions
diff --git a/common/usb-install.yml b/common/usb-install.yml
index 81fe239a..a7bbe012 100644
--- a/common/usb-install.yml
+++ b/common/usb-install.yml
@@ -1,28 +1,30 @@
---
-- name: preparations and sanity checks
+- name: preparations, sanity checks and basic installation
hosts: "{{ install_hostname }}"
connection: local
gather_facts: no
+ vars:
+ installer_variant: debian
vars_prompt:
- name: usb_install_path
- prompt: Where is the USB installation medium mounted to?
+ prompt: "Path to the the USB installation mountpoint or device"
private: no
-
roles:
- - role: installer/debian/usb
- installer_base_path: "{{ global_cache_dir }}/debian-installer"
+ - role: "installer/{{ installer_variant }}/usb"
+ installer_base_path: "{{ global_cache_dir }}/{{ installer_variant }}-installer"
installer_keyrings_path: "{{ global_files_dir }}/common/keyrings"
-
-
-- name: basic installation
- hosts: "{{ install_hostname }}"
- gather_facts: no
- tasks:
+ post_tasks:
- pause:
prompt: |
Please unmount the USB the stick, plug it into the machine and boot from it.
Once the installation is done press ENTER to continue or CTRL-C then A to abort.
+ {% if installer_variant == 'ubuntu' %}
+
+ Hint: You are using the ubuntu installer, this means the final system initialization and
+ cleanup is done by cloud-init on first boot. These steps need to be finished before the
+ playbook can continue.
+ {% endif %}
- name: wait for new machine to start up, apply early roles and reboot