From f8ba5c41db778ac1098ec0be749e367dfbc8b709 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Tue, 29 Oct 2024 15:08:43 +0100 Subject: [PATCH] Update Ubuntu to Oracular Oriole and Ubuntu-LTS to Noble Numbat --- README.md | 4 ++-- roles/bootstrap/tasks/main.yml | 2 +- roles/configuration/tasks/main.yml | 9 ++++++++- roles/partitioning/tasks/ext4.yml | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 31f8186..5ea5b17 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ This playbook supports multiple Linux distributions with specific versions tailo | debian12 | Debian 12 (Bookworm) | | fedora | Fedora 41 | | rocky | Rocky Linux 9.x | -| ubuntu | Ubuntu 23.10 (Mantic Minotaur) | -| ubuntu-lts | Ubuntu 22.04 LTS (Jammy Jellyfish) | +| ubuntu | Ubuntu 24.10 (Oracular Oriole) | +| ubuntu-lts | Ubuntu 24.04 LTS (Noble Numbat) | # Documentation diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 90a20f0..ba3a8c7 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -29,7 +29,7 @@ changed_when: result.rc == 0 register: result with_items: - - debootstrap --include={{ role_packages[os].base | join(',') }} {{ 'mantic' if os == 'ubuntu' else 'jammy' }} + - debootstrap --include={{ role_packages[os].base | join(',') }} {{ 'oracular' if os == 'ubuntu' else 'noble' }} /mnt http://archive.ubuntu.com/ubuntu/ - ln -sf /run/systemd/resolve/resolv.conf /mnt/etc/resolv.conf - arch-chroot /mnt sed -i '1s|$| universe|' /etc/apt/sources.list diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 7f29e73..a0d8ef6 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -77,7 +77,7 @@ block: - name: Enable sshd when: os | lower == "archlinux" - ansible.builtin.command: arch-chroot /mnt systemctl enable sshd logrotate systemd-resolved systemd-timesyncd NetworkManager + ansible.builtin.command: arch-chroot /mnt systemctl enable sshd logrotate systemd-resolved systemd-timesyncd systemd-networkd NetworkManager changed_when: result.rc == 0 register: result @@ -174,6 +174,13 @@ dest: /mnt/etc/NetworkManager/system-connections/LAN.nmconnection mode: "0600" + - name: Fix Ubuntu unmanaged devices + when: os | lower in ["ubuntu", "ubuntu-lts"] + ansible.builtin.file: + path: /mnt/etc/NetworkManager/conf.d/10-globally-managed-devices.conf + state: touch + mode: '0644' + - name: Setup user account block: - name: Create user account diff --git a/roles/partitioning/tasks/ext4.yml b/roles/partitioning/tasks/ext4.yml index e89105f..e188a96 100644 --- a/roles/partitioning/tasks/ext4.yml +++ b/roles/partitioning/tasks/ext4.yml @@ -13,7 +13,7 @@ - { lv: var_log_audit } - name: Remove Unsupported features for older Systems - when: (os | lower in ['almalinux', 'debian11', 'rhel8', 'rhel9', 'rocky', 'ubuntu-lts']) and (cis | bool or item.lv not in ['var_log', 'var_log_audit']) + when: (os | lower in ['almalinux', 'debian11', 'rhel8', 'rhel9', 'rocky']) and (cis | bool or item.lv not in ['var_log', 'var_log_audit']) ansible.builtin.command: tune2fs -O "^orphan_file,^metadata_csum_seed" "/dev/sys/{{ item.lv }}" changed_when: result.rc == 0 register: result