From 30eb7447283d6f8a59f081a5b75a8ced3590b44e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 23 Apr 2026 00:15:45 +0200 Subject: Refactor inventory --- archlinux.md | 9 ++--- host_vars/arch-desktop-iso.local.yml | Bin 0 -> 923 bytes host_vars/arch-desktop-iso.local.yml.example | 41 +++++++++++++++++++++ host_vars/arch-laptop-iso.local.yml | Bin 0 -> 1023 bytes host_vars/arch-laptop-iso.local.yml.example | 46 ++++++++++++++++++++++++ host_vars/arch-macbook-iso.local.yml | Bin 0 -> 1073 bytes host_vars/arch-macbook-iso.local.yml.example | 48 +++++++++++++++++++++++++ host_vars/archiso.local.yml | Bin 925 -> 0 bytes host_vars/archiso.local.yml.example | 41 --------------------- host_vars/marchiso.local.yml | Bin 1076 -> 0 bytes host_vars/marchiso.local.yml.example | 48 ------------------------- host_vars/mubuntuiso.local.yml | Bin 1072 -> 0 bytes host_vars/mubuntuiso.local.yml.example | 48 ------------------------- host_vars/raspberryiso.local.yml | Bin 577 -> 0 bytes host_vars/raspberryiso.local.yml.example | 25 ------------- host_vars/rpi5-iso.local.yml | Bin 0 -> 577 bytes host_vars/rpi5-iso.local.yml.example | 25 +++++++++++++ host_vars/ubuntu-desktop-iso.local.yml | Bin 0 -> 925 bytes host_vars/ubuntu-desktop-iso.local.yml.example | 41 +++++++++++++++++++++ host_vars/ubuntu-laptop-iso.local.yml | Bin 0 -> 1052 bytes host_vars/ubuntu-laptop-iso.local.yml.example | 47 ++++++++++++++++++++++++ host_vars/ubuntu-macbook-iso.local.yml | Bin 0 -> 1073 bytes host_vars/ubuntu-macbook-iso.local.yml.example | 48 +++++++++++++++++++++++++ host_vars/ubuntuiso.local.yml | Bin 924 -> 0 bytes host_vars/ubuntuiso.local.yml.example | 41 --------------------- inventory/hosts.yml | 14 +++++--- raspberry.md | 2 +- ubuntu.md | 11 +++--- 28 files changed, 316 insertions(+), 219 deletions(-) create mode 100644 host_vars/arch-desktop-iso.local.yml create mode 100644 host_vars/arch-desktop-iso.local.yml.example create mode 100644 host_vars/arch-laptop-iso.local.yml create mode 100644 host_vars/arch-laptop-iso.local.yml.example create mode 100644 host_vars/arch-macbook-iso.local.yml create mode 100644 host_vars/arch-macbook-iso.local.yml.example delete mode 100644 host_vars/archiso.local.yml delete mode 100644 host_vars/archiso.local.yml.example delete mode 100644 host_vars/marchiso.local.yml delete mode 100644 host_vars/marchiso.local.yml.example delete mode 100644 host_vars/mubuntuiso.local.yml delete mode 100644 host_vars/mubuntuiso.local.yml.example delete mode 100644 host_vars/raspberryiso.local.yml delete mode 100644 host_vars/raspberryiso.local.yml.example create mode 100644 host_vars/rpi5-iso.local.yml create mode 100644 host_vars/rpi5-iso.local.yml.example create mode 100644 host_vars/ubuntu-desktop-iso.local.yml create mode 100644 host_vars/ubuntu-desktop-iso.local.yml.example create mode 100644 host_vars/ubuntu-laptop-iso.local.yml create mode 100644 host_vars/ubuntu-laptop-iso.local.yml.example create mode 100644 host_vars/ubuntu-macbook-iso.local.yml create mode 100644 host_vars/ubuntu-macbook-iso.local.yml.example delete mode 100644 host_vars/ubuntuiso.local.yml delete mode 100644 host_vars/ubuntuiso.local.yml.example diff --git a/archlinux.md b/archlinux.md index 5138de1..68104b7 100644 --- a/archlinux.md +++ b/archlinux.md @@ -6,16 +6,17 @@ - Create bootable image from iso `sudo dd if=/path/to/image.iso of=/dev/diskX bs=4M status=progress` - Boot the `archiso` live image from a bootable USB. - Set root password (which will be asked to run the install playbook). +- Set the host name `arch--iso.local` - Reload `boradcom-wl` module on Mac. - Connect to wireless network (if not connected via LAN). -- `cp host_vars/archiso.local.example host_vars/archiso.local` -- Update the `host_vars/archiso.local` file. +- `cp host_vars/arch--iso.local.example host_vars/arch--iso.local` +- Update the `host_vars/arch--iso.local` file - Run the playbook on the ansible controller. **Generic Example:** ```bash -hostnamectl set-hostname archiso.local +hostnamectl set-hostname arch--iso.local passwd iwctl --passphrase station wlan0 connect dhcpcd wlan0 @@ -24,7 +25,7 @@ dhcpcd wlan0 **Mac Example:** ```bash -hostnamectl set-hostname marchiso.local +hostnamectl set-hostname arch-macbook-iso.local passwd rmmod b43 ssb bcma wl modprobe wl diff --git a/host_vars/arch-desktop-iso.local.yml b/host_vars/arch-desktop-iso.local.yml new file mode 100644 index 0000000..05bc5b6 Binary files /dev/null and b/host_vars/arch-desktop-iso.local.yml differ diff --git a/host_vars/arch-desktop-iso.local.yml.example b/host_vars/arch-desktop-iso.local.yml.example new file mode 100644 index 0000000..69644d5 --- /dev/null +++ b/host_vars/arch-desktop-iso.local.yml.example @@ -0,0 +1,41 @@ +--- +hostname: "desktop.local" +partition_disk: "/dev/nvme0n1" +partition_wipe: true +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}p1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}p2" + mount_path: "none" +partition_root: + num: 3 + name: "arch-root" + part_start: "9.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}p3" + mount_path: "/mnt" +partition_extras: + - num: 4 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}p4" + mount_path: "/mnt/home" +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/arch-laptop-iso.local.yml b/host_vars/arch-laptop-iso.local.yml new file mode 100644 index 0000000..22b4bae Binary files /dev/null and b/host_vars/arch-laptop-iso.local.yml differ diff --git a/host_vars/arch-laptop-iso.local.yml.example b/host_vars/arch-laptop-iso.local.yml.example new file mode 100644 index 0000000..cc4ea7d --- /dev/null +++ b/host_vars/arch-laptop-iso.local.yml.example @@ -0,0 +1,46 @@ +--- +hostname: "laptop.local" +partition_disk: "/dev/sda" +partition_wipe: false +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}2" + mount_path: "none" +partition_root: + num: 4 + name: "arch-root" + part_start: "59.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}4" + mount_path: "/mnt" +partition_extras: + - num: 3 + name: "ubuntu-root" + part_start: "9.0GiB" + part_end: "59.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}3" + - num: 5 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}4" +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/arch-macbook-iso.local.yml b/host_vars/arch-macbook-iso.local.yml new file mode 100644 index 0000000..4b0015b Binary files /dev/null and b/host_vars/arch-macbook-iso.local.yml differ diff --git a/host_vars/arch-macbook-iso.local.yml.example b/host_vars/arch-macbook-iso.local.yml.example new file mode 100644 index 0000000..b99a244 --- /dev/null +++ b/host_vars/arch-macbook-iso.local.yml.example @@ -0,0 +1,48 @@ +--- +hostname: "macbook.local" +partition_disk: "/dev/sda" +partition_wipe: false +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}2" + mount_path: "none" +partition_root: + num: 4 + name: "arch-root" + part_start: "59.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}4" + mount_path: "/mnt" +partition_extras: + - num: 3 + name: "ubuntu-root" + part_start: "9.0GiB" + part_end: "59.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}3" + - num: 5 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}5" + mount_path: "/mnt/home" +bootstrap_mac: true +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/archiso.local.yml b/host_vars/archiso.local.yml deleted file mode 100644 index fd13ed2..0000000 Binary files a/host_vars/archiso.local.yml and /dev/null differ diff --git a/host_vars/archiso.local.yml.example b/host_vars/archiso.local.yml.example deleted file mode 100644 index d3967b0..0000000 --- a/host_vars/archiso.local.yml.example +++ /dev/null @@ -1,41 +0,0 @@ ---- -hostname: "archlinux.local" -partition_disk: "/dev/nvme0n1" -partition_wipe: true -partition_boot: - num: 1 - name: "boot" - flags: [boot, esp] - part_start: "0%" - part_end: "1.0GiB" - fstype: "vfat" - fstype_opts: "-F 32" - dev: "{{ partition_disk }}p1" - mount_path: "/mnt/boot/efi" - fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" -partition_swap: - num: 2 - name: "swap" - flags: [swap] - part_start: "1.0GiB" - part_end: "9.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}p2" - mount_path: "none" -partition_root: - num: 3 - name: "arch-root" - part_start: "9.0GiB" - part_end: "109.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}p3" - mount_path: "/mnt" -partition_extras: - - num: 4 - name: "home" - part_start: "109.0GiB" - part_end: "100%" - fstype: "ext4" - dev: "{{ partition_disk }}p4" - mount_path: "/mnt/home" -configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/marchiso.local.yml b/host_vars/marchiso.local.yml deleted file mode 100644 index 2d33954..0000000 Binary files a/host_vars/marchiso.local.yml and /dev/null differ diff --git a/host_vars/marchiso.local.yml.example b/host_vars/marchiso.local.yml.example deleted file mode 100644 index cbe391b..0000000 --- a/host_vars/marchiso.local.yml.example +++ /dev/null @@ -1,48 +0,0 @@ ---- -hostname: "marchlinux.local" -partition_disk: "/dev/sda" -partition_wipe: false -partition_boot: - num: 1 - name: "boot" - flags: [boot, esp] - part_start: "0%" - part_end: "1.0GiB" - fstype: "vfat" - fstype_opts: "-F 32" - dev: "{{ partition_disk }}1" - mount_path: "/mnt/boot/efi" - fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" -partition_swap: - num: 2 - name: "swap" - flags: [swap] - part_start: "1.0GiB" - part_end: "9.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}2" - mount_path: "none" -partition_root: - num: 4 - name: "arch-root" - part_start: "59.0GiB" - part_end: "109.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}4" - mount_path: "/mnt" -partition_extras: - - num: 3 - name: "ubuntu-root" - part_start: "9.0GiB" - part_end: "59.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}3" - - num: 5 - name: "home" - part_start: "109.0GiB" - part_end: "100%" - fstype: "ext4" - dev: "{{ partition_disk }}5" - mount_path: "/mnt/home" -bootstrap_mac: true -configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/mubuntuiso.local.yml b/host_vars/mubuntuiso.local.yml deleted file mode 100644 index b80ecbf..0000000 Binary files a/host_vars/mubuntuiso.local.yml and /dev/null differ diff --git a/host_vars/mubuntuiso.local.yml.example b/host_vars/mubuntuiso.local.yml.example deleted file mode 100644 index 704bffe..0000000 --- a/host_vars/mubuntuiso.local.yml.example +++ /dev/null @@ -1,48 +0,0 @@ ---- -hostname: "mubuntu.local" -partition_disk: "/dev/sda" -partition_wipe: false -partition_boot: - num: 1 - name: "boot" - flags: [boot, esp] - part_start: "0%" - part_end: "1.0GiB" - fstype: "vfat" - fstype_opts: "-F 32" - dev: "{{ partition_disk }}1" - mount_path: "/mnt/boot/efi" - fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" -partition_swap: - num: 2 - name: "swap" - flags: [swap] - part_start: "1.0GiB" - part_end: "9.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}2" - mount_path: "none" -partition_root: - num: 3 - name: "ubuntu-root" - part_start: "9.0GiB" - part_end: "59.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}3" - mount_path: "/mnt" -partition_extras: - - num: 4 - name: "arch-root" - part_start: "59.0GiB" - part_end: "109.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}4" - - num: 5 - name: "home" - part_start: "109.0GiB" - part_end: "100%" - fstype: "ext4" - dev: "{{ partition_disk }}5" - mount_path: "/mnt/home" -bootstrap_mac: true -configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/raspberryiso.local.yml b/host_vars/raspberryiso.local.yml deleted file mode 100644 index 04b3db2..0000000 Binary files a/host_vars/raspberryiso.local.yml and /dev/null differ diff --git a/host_vars/raspberryiso.local.yml.example b/host_vars/raspberryiso.local.yml.example deleted file mode 100644 index 6a98993..0000000 --- a/host_vars/raspberryiso.local.yml.example +++ /dev/null @@ -1,25 +0,0 @@ ---- -hostname: "rpi5.local" -partition_disk: "/dev/mmcblk0" -partition_wipe: true -partition_boot: - num: 1 - name: "boot" - flags: [boot, esp] - part_start: "0%" - part_end: "200MiB" - fstype: "vfat" - fstype_opts: "-F 32 -n boot" - dev: "{{ partition_disk }}p1" - mount_path: "/mnt/boot/firmware" - fstab_opts: "defaults,noatime" -partition_root: - num: 2 - name: "root" - part_start: "200MiB" - part_end: "100%" - fstype: "ext4" - dev: "{{ partition_disk }}p2" - mount_path: "/mnt" -partition_extras: [] -configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/rpi5-iso.local.yml b/host_vars/rpi5-iso.local.yml new file mode 100644 index 0000000..04b3db2 Binary files /dev/null and b/host_vars/rpi5-iso.local.yml differ diff --git a/host_vars/rpi5-iso.local.yml.example b/host_vars/rpi5-iso.local.yml.example new file mode 100644 index 0000000..6a98993 --- /dev/null +++ b/host_vars/rpi5-iso.local.yml.example @@ -0,0 +1,25 @@ +--- +hostname: "rpi5.local" +partition_disk: "/dev/mmcblk0" +partition_wipe: true +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "200MiB" + fstype: "vfat" + fstype_opts: "-F 32 -n boot" + dev: "{{ partition_disk }}p1" + mount_path: "/mnt/boot/firmware" + fstab_opts: "defaults,noatime" +partition_root: + num: 2 + name: "root" + part_start: "200MiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}p2" + mount_path: "/mnt" +partition_extras: [] +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/ubuntu-desktop-iso.local.yml b/host_vars/ubuntu-desktop-iso.local.yml new file mode 100644 index 0000000..ccbcc47 Binary files /dev/null and b/host_vars/ubuntu-desktop-iso.local.yml differ diff --git a/host_vars/ubuntu-desktop-iso.local.yml.example b/host_vars/ubuntu-desktop-iso.local.yml.example new file mode 100644 index 0000000..0376c61 --- /dev/null +++ b/host_vars/ubuntu-desktop-iso.local.yml.example @@ -0,0 +1,41 @@ +--- +hostname: "desktop.local" +partition_disk: "/dev/nvme0n1" +partition_wipe: true +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}p1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}p2" + mount_path: "none" +partition_root: + num: 3 + name: "ubuntu-root" + part_start: "9.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}p3" + mount_path: "/mnt" +partition_extras: + - num: 4 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}p4" + mount_path: "/mnt/home" +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/ubuntu-laptop-iso.local.yml b/host_vars/ubuntu-laptop-iso.local.yml new file mode 100644 index 0000000..07a6445 Binary files /dev/null and b/host_vars/ubuntu-laptop-iso.local.yml differ diff --git a/host_vars/ubuntu-laptop-iso.local.yml.example b/host_vars/ubuntu-laptop-iso.local.yml.example new file mode 100644 index 0000000..a4e7b63 --- /dev/null +++ b/host_vars/ubuntu-laptop-iso.local.yml.example @@ -0,0 +1,47 @@ +--- +hostname: "laptop.local" +partition_disk: "/dev/sda" +partition_wipe: false +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}2" + mount_path: "none" +partition_root: + num: 3 + name: "ubuntu-root" + part_start: "9.0GiB" + part_end: "59.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}3" + mount_path: "/mnt" +partition_extras: + - num: 4 + name: "arch-root" + part_start: "59.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}4" + - num: 5 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}5" + mount_path: "/mnt/home" +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/ubuntu-macbook-iso.local.yml b/host_vars/ubuntu-macbook-iso.local.yml new file mode 100644 index 0000000..86ce960 Binary files /dev/null and b/host_vars/ubuntu-macbook-iso.local.yml differ diff --git a/host_vars/ubuntu-macbook-iso.local.yml.example b/host_vars/ubuntu-macbook-iso.local.yml.example new file mode 100644 index 0000000..6c07621 --- /dev/null +++ b/host_vars/ubuntu-macbook-iso.local.yml.example @@ -0,0 +1,48 @@ +--- +hostname: "macbook.local" +partition_disk: "/dev/sda" +partition_wipe: false +partition_boot: + num: 1 + name: "boot" + flags: [boot, esp] + part_start: "0%" + part_end: "1.0GiB" + fstype: "vfat" + fstype_opts: "-F 32" + dev: "{{ partition_disk }}1" + mount_path: "/mnt/boot/efi" + fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" +partition_swap: + num: 2 + name: "swap" + flags: [swap] + part_start: "1.0GiB" + part_end: "9.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}2" + mount_path: "none" +partition_root: + num: 3 + name: "ubuntu-root" + part_start: "9.0GiB" + part_end: "59.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}3" + mount_path: "/mnt" +partition_extras: + - num: 4 + name: "arch-root" + part_start: "59.0GiB" + part_end: "109.0GiB" + fstype: "ext4" + dev: "{{ partition_disk }}4" + - num: 5 + name: "home" + part_start: "109.0GiB" + part_end: "100%" + fstype: "ext4" + dev: "{{ partition_disk }}5" + mount_path: "/mnt/home" +bootstrap_mac: true +configure_playbook_dir: "../ansible-distro-configure" diff --git a/host_vars/ubuntuiso.local.yml b/host_vars/ubuntuiso.local.yml deleted file mode 100644 index 20831bf..0000000 Binary files a/host_vars/ubuntuiso.local.yml and /dev/null differ diff --git a/host_vars/ubuntuiso.local.yml.example b/host_vars/ubuntuiso.local.yml.example deleted file mode 100644 index 51b5456..0000000 --- a/host_vars/ubuntuiso.local.yml.example +++ /dev/null @@ -1,41 +0,0 @@ ---- -hostname: "ubuntu.local" -partition_disk: "/dev/nvme0n1" -partition_wipe: true -partition_boot: - num: 1 - name: "boot" - flags: [boot, esp] - part_start: "0%" - part_end: "1.0GiB" - fstype: "vfat" - fstype_opts: "-F 32" - dev: "{{ partition_disk }}p1" - mount_path: "/mnt/boot/efi" - fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077" -partition_swap: - num: 2 - name: "swap" - flags: [swap] - part_start: "1.0GiB" - part_end: "9.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}p2" - mount_path: "none" -partition_root: - num: 3 - name: "ubuntu-root" - part_start: "9.0GiB" - part_end: "109.0GiB" - fstype: "ext4" - dev: "{{ partition_disk }}p3" - mount_path: "/mnt" -partition_extras: - - num: 4 - name: "home" - part_start: "109.0GiB" - part_end: "100%" - fstype: "ext4" - dev: "{{ partition_disk }}p4" - mount_path: "/mnt/home" -configure_playbook_dir: "../ansible-distro-configure" diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 447ed16..5c0e002 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -4,13 +4,17 @@ live_environments: ansible_connection: ssh ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" hosts: - marchiso.local: + arch-desktop-iso.local: ansible_user: root - archiso.local: + arch-macbook-iso.local: ansible_user: root - ubuntuiso.local: + arch-laptop-iso.local: + ansible_user: root + ubuntu-desktop-iso.local: + ansible_user: ubuntu + ubuntu-macbook-iso.local: ansible_user: ubuntu - mubuntuiso.local: + ubuntu-laptop-iso.local: ansible_user: ubuntu - raspberryiso.local: + rpi5-iso.local: ansible_user: pi diff --git a/raspberry.md b/raspberry.md index 4c19723..7cff1ec 100644 --- a/raspberry.md +++ b/raspberry.md @@ -3,7 +3,7 @@ - Download [Raspberry Pi Imager](https://www.raspberrypi.com/software/) - Create a bootable USB using the imager - OS: Raspberry PI OS LITE - - Hostname: `raspberryiso` + - Hostname: `rpiiso` - Username/Password: `pi:raspberry` - Enable SSH (Use password authentication) - Turn off the raspberry pi and remove the SD card diff --git a/ubuntu.md b/ubuntu.md index e4747d0..9b7da80 100644 --- a/ubuntu.md +++ b/ubuntu.md @@ -7,16 +7,16 @@ - Boot the `ubuntu` live image from a bootable USB - Connect to wireless network (if not connected via LAN) - Set root password (which will be asked to run the install playbook) -- Set the hostname to `ubuntuiso.local` +- Set the host name `ubuntu--iso.local` - Install and configure ssh -- `cp host_vars/ubuntuiso.local.example host_vars/ubuntuiso.local` -- Update the `host_vars/ubuntuiso.local` file +- `cp host_vars/ubuntu--iso.local.example host_vars/ubuntu--iso.local` +- Update the `host_vars/ubuntu--iso.local` file - Run the playbook on the ansible controller **Example:** ```bash -sudo hostnamectl set-hostname ubuntuiso +sudo hostnamectl set-hostname ubuntu--iso passwd nmcli dev wifi connect password sudo apt update @@ -42,10 +42,9 @@ cp -r /media/usb/bcmwl-drivers /tmp/bcmwl bash /tmp/bcmwl/install-wl.sh /tmp/bcmwl ip link -hostnamectl set-hostname mubuntuiso +hostnamectl set-hostname ubuntu-macbook-iso.local passwd nmcli dev wifi connect password -sudo dhcpcd wlp3s0 sudo apt update sudo DEBIAN_FRONTEND=noninteractive apt install -y openssh-server sudo systemctl restart ssh avahi-daemon -- cgit v1.2.3