From b94d56f916c275ba73e4cd668629652993a96107 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 11 Aug 2025 00:33:33 +0200 Subject: Add Raspberry Pi5 support to bootstrap --- roles/bootstrap/tasks/main.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'roles/bootstrap/tasks/main.yml') diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 723561d..3c239bf 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -9,6 +9,24 @@ ansible.builtin.include_tasks: "install-archlinux.yml" when: ansible_os_family == "Archlinux" -- name: "Install ubuntu" - ansible.builtin.include_tasks: "install-ubuntu.yml" - when: ansible_os_distribution == "Ubuntu" +- name: "Install debian" + when: ansible_os_family == "Debian" + block: + - name: "Install ubuntu" + ansible.builtin.include_tasks: "install-ubuntu.yml" + when: ansible_distribution == "Ubuntu" + + - name: "Install raspberry" + ansible.builtin.include_tasks: "install-raspberry.yml" + when: ansible_distribution == "Debian" + + - name: "Configure hostname in chroot" + ansible.builtin.copy: + dest: "{{ mnt_root_path }}/etc/hostname" + mode: "0644" + content: "{{ hostname }}" + + - name: "Ensure ansible dependencies are installed in chroot" + ansible.builtin.command: + cmd: "arch-chroot {{ mnt_root_path }} apt-get install -y python3" + changed_when: true -- cgit v1.2.3