diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:33 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:33 +0200 |
| commit | b94d56f916c275ba73e4cd668629652993a96107 (patch) | |
| tree | 7b265cb5c6d94e51eecfcb1cb805aa46a845dbf3 /roles/bootstrap/tasks/main.yml | |
| parent | d3e78a37b6d907ecbfc817db6ba4c7a71f8a96c3 (diff) | |
Add Raspberry Pi5 support to bootstrap
Diffstat (limited to 'roles/bootstrap/tasks/main.yml')
| -rw-r--r-- | roles/bootstrap/tasks/main.yml | 24 |
1 files changed, 21 insertions, 3 deletions
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 |
