diff --git a/README.md b/README.md index 197fa23..31f8186 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This playbook supports multiple Linux distributions with specific versions tailo | almalinux | AlmaLinux 9.x | | debian11 | Debian 11 (Bullseye) | | debian12 | Debian 12 (Bookworm) | -| fedora | Fedora 40 | +| fedora | Fedora 41 | | rocky | Rocky Linux 9.x | | ubuntu | Ubuntu 23.10 (Mantic Minotaur) | | ubuntu-lts | Ubuntu 22.04 LTS (Jammy Jellyfish) | diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 3c969b3..90a20f0 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -46,16 +46,16 @@ - ln -sf /run/systemd/resolve/resolv.conf /mnt/etc/resolv.conf - arch-chroot /mnt dnf --releasever=9 --setopt=install_weak_deps=False install -y {{ role_packages.almalinux | join(' ') }} - - name: Bootstrap Fedora 40 + - name: Bootstrap Fedora 41 when: os | lower == 'fedora' ansible.builtin.command: "{{ item }}" changed_when: result.rc == 0 register: result with_items: - - dnf --releasever=40 --best --repo=fedora --repo=fedora-updates + - dnf --releasever=41 --best --repo=fedora --repo=fedora-updates --installroot=/mnt --setopt=install_weak_deps=False groupinstall -y critical-path-base core - ln -sf /run/systemd/resolve/resolv.conf /mnt/etc/resolv.conf - - arch-chroot /mnt dnf --releasever=40 --setopt=install_weak_deps=False install -y {{ role_packages.fedora | join(' ') }} + - arch-chroot /mnt dnf --releasever=41 --setopt=install_weak_deps=False install -y {{ role_packages.fedora | join(' ') }} - arch-chroot /mnt dnf reinstall -y kernel-core - name: Bootstrap RockyLinux 9 diff --git a/templates/fedora.repo.j2 b/templates/fedora.repo.j2 index 8ae1d65..9e68f98 100644 --- a/templates/fedora.repo.j2 +++ b/templates/fedora.repo.j2 @@ -22,4 +22,4 @@ type=rpm gpgcheck=1 metadata_expire=86400 gpgkey=https://getfedora.org/static/fedora.gpg -skip_if_unavailable=False \ No newline at end of file +skip_if_unavailable=False