diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:34 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:34 +0200 |
| commit | 6b20b109fd455ffa71351890a18940e7da326229 (patch) | |
| tree | bf429579ddb5f22d06286f5d4670965676fc7af7 /roles | |
| parent | 4e96a9abb248290a72a5bcf088ba16c1d6e2ab71 (diff) | |
Make bootstrap raspberry more detailed with minimal setup
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/bootstrap/tasks/install-raspberry.yml | 3 | ||||
| -rw-r--r-- | roles/bootstrap/tasks/main.yml | 2 | ||||
| -rw-r--r-- | roles/bootstrap/vars/debian.yml | 7 |
3 files changed, 5 insertions, 7 deletions
diff --git a/roles/bootstrap/tasks/install-raspberry.yml b/roles/bootstrap/tasks/install-raspberry.yml index f19b104..b287746 100644 --- a/roles/bootstrap/tasks/install-raspberry.yml +++ b/roles/bootstrap/tasks/install-raspberry.yml @@ -55,7 +55,7 @@ changed_when: true with_items: - "apt-get update" - - "apt-get install -y {{ bootstrap_distro.packages | join(' ') }}" + - "apt-get install -y --no-install-recommends {{ bootstrap_distro.packages | join(' ') }}" - name: "Copy kernel to boot partition" # NOTE: Copying {{ mnt_root_path }}/boot/ doesn't work @@ -82,3 +82,4 @@ args: executable: "bash" changed_when: true + tags: ["molecule-notest"] diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 4e86312..f74e743 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -18,7 +18,7 @@ - name: "Install raspberry" ansible.builtin.include_tasks: "install-raspberry.yml" - when: ansible_distribution == "Debian" + when: ansible_distribution == "Debian" and ansible_architecture == "aarch64" - name: "Ensure ansible dependencies are installed in chroot" ansible.builtin.command: diff --git a/roles/bootstrap/vars/debian.yml b/roles/bootstrap/vars/debian.yml index 25e2764..a305470 100644 --- a/roles/bootstrap/vars/debian.yml +++ b/roles/bootstrap/vars/debian.yml @@ -6,12 +6,9 @@ bootstrap_distro: - "raspberrypi-kernel" - "raspberrypi-bootloader" - "firmware-brcm80211" - - "systemd-sysv" - - "udev" - - "kmod" - "rpi-eeprom" -bootstrap_opts: "--arch=arm64 --include=systemd,udev" +bootstrap_opts: "--arch=arm64" bootstrap_apt_ignored_preferences: "" @@ -19,8 +16,8 @@ bootstrap_apt_ignored_preferences: "" bootstrap_apt_sources: | deb [signed-by=/usr/share/keyrings/raspberrypi.gpg] http://archive.raspberrypi.org/debian {{ bootstrap_distro.name }} main deb http://deb.debian.org/debian {{ bootstrap_distro.name }} main - # yamllint enable rule:line-length + # 1 = SD card # f = Restart (loop back) # 6 = NVMe SSD |
