steps: - mkimg: "{{ output }}" size: 4G - mklabel: msdos device: "{{ output }}" - mkpart: primary device: "{{ output }}" start: 0% end: 50% tag: / - kpartx: "{{ output }}" - mkfs: ext4 partition: / - mount: / - unpack-rootfs: / - debootstrap: bookworm mirror: http://deb.debian.org/debian target: / unless: rootfs_unpacked - apt: install packages: - linux-image-amd64 recommends: false tag: / unless: rootfs_unpacked - cache-rootfs: / unless: rootfs_unpacked - chroot: / shell: | apt-get -y install python3 parted acpi - fstab: / - resize-rootfs: / - ansible: / playbook: base-image.yml - grub: bios tag: / quiet: false