Ansible Role: Ubuntu Autoinstall
This role will:
- Download and verify (GPG and SHA256) the newest Ubuntu Server 20.04 ISO
- Unpack the ISO and integrate the user-data file for semi-automated installation
- Repack the ISO and (optionally) upload it to PiKVM for futher installation
Special thanks to:
- covertsh for Ubuntu Autoinstall Generator β this repo is pretty much an Ansible version of their script
Example playbook:
---
- hosts: all
gather_facts: yes
become: no
roles:
- role: notthebee.ubuntu_autoinstall
Variables
- boot_drive_serial β the serial number of the drive where you want to install Ubuntu. You can find it out using
ls /dev/disk/by-id
. Make sure to omit the interface (e.g. ata- or scsi-). - iso_arch β Architecture of the output ISO file.
amd64
andarm64
are supported
Other variables are more or less self-explanatory and can be found in defaults/main.yml