blob: 0545fcbfb0479b63e655655b2490769702e43c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
steps:
- mkimg: "{{ output }}"
size: 100G
- mklabel: gpt
device: "{{ output }}"
- mkpart: primary
device: "{{ output }}"
start: 0%
end: 1G
tag: efi
- mkpart: primary
device: "{{ output }}"
start: 1G
end: 100%
tag: /
- kpartx: "{{ output }}"
- mkfs: vfat
partition: efi
- mkfs: ext4
partition: /
- mount: /
- unpack-rootfs: /
- debootstrap: bookworm
mirror: http://deb.debian.org/debian
variant: minbase
target: /
unless: rootfs_unpacked
include:
- linux-image-amd64
- python3
- systemd-sysv
- build-essential
# Install one package with apt, so that apt-get clean gets run. This
# makes the resulting image smaller.
- apt: install
tag: /
packages:
- zstd
- nano
- cache-rootfs: /
unless: rootfs_unpacked
- virtual-filesystems: /
- fstab: /
- grub: uefi
tag: /
efi: efi
console: serial
quiet: false
- ansible: /
playbook: playbook.yml
|