Update Fedora to 42
This commit is contained in:
2
main.yml
2
main.yml
@@ -49,7 +49,7 @@
|
||||
- hypervisor in ["libvirt", "proxmox", "vmware", "none"]
|
||||
- filesystem in ["btrfs", "ext4", "xfs"]
|
||||
- install_drive is defined
|
||||
- os in ["archlinux", "almalinux", "debian11", "debian12", "fedora", "rhel8", "rhel9", "rhel10", "rocky", "ubuntu", "ubuntu-lts"]
|
||||
- os in ["archlinux", "almalinux", "debian11", "debian12", "fedora", "rhel8", "rhel9", "rocky", "ubuntu", "ubuntu-lts"]
|
||||
- os not in ["rhel8", "rhel9", "rhel10"] or rhel_iso is defined
|
||||
- (filesystem == "btrfs" and (vm_size | int) >= 10) or (filesystem != "btrfs" and (vm_size | int) >= 20)
|
||||
- (vm_size | float) >= ((vm_memory | float / 1024 >= 16.0) | ternary((vm_memory | float / 2048), [vm_memory | float / 1024, 4.0] | max) + 16)
|
||||
|
||||
@@ -41,16 +41,16 @@
|
||||
- ln -sf /run/NetworkManager/resolv.conf /mnt/etc/resolv.conf
|
||||
- arch-chroot /mnt dnf --releasever=9 --setopt=install_weak_deps=False install -y {{ almalinux | join(' ') }}
|
||||
|
||||
- name: Bootstrap Fedora 41
|
||||
- name: Bootstrap Fedora 42
|
||||
when: os | lower == 'fedora'
|
||||
ansible.builtin.command: "{{ item }}"
|
||||
changed_when: result.rc == 0
|
||||
register: result
|
||||
with_items:
|
||||
- dnf --releasever=41 --best --repo=fedora --repo=fedora-updates
|
||||
- dnf --releasever=42 --best --repo=fedora --repo=fedora-updates
|
||||
--installroot=/mnt --setopt=install_weak_deps=False groupinstall -y critical-path-base core
|
||||
- ln -sf /run/NetworkManager/resolv.conf /mnt/etc/resolv.conf
|
||||
- arch-chroot /mnt dnf --releasever=41 --setopt=install_weak_deps=False install -y {{ fedora | join(' ') }}
|
||||
- arch-chroot /mnt dnf --releasever=42 --setopt=install_weak_deps=False install -y {{ fedora | join(' ') }}
|
||||
- arch-chroot /mnt dnf reinstall -y kernel-core
|
||||
|
||||
- name: Bootstrap RockyLinux 9
|
||||
|
||||
@@ -164,10 +164,8 @@ fedora:
|
||||
- cronie
|
||||
- dhcp-client
|
||||
- duf
|
||||
- dust
|
||||
- efibootmgr
|
||||
- entr
|
||||
- eza
|
||||
- fish
|
||||
- fzf
|
||||
- glibc-langpack-de
|
||||
|
||||
@@ -8,7 +8,7 @@ metadata_expire=86400
|
||||
repo_gpgcheck=0
|
||||
type=rpm
|
||||
gpgcheck=1
|
||||
gpgkey=https://getfedora.org/static/fedora.gpg
|
||||
gpgkey=https://fedoraproject.org/fedora.gpg
|
||||
skip_if_unavailable=False
|
||||
|
||||
[fedora-updates]
|
||||
@@ -21,5 +21,5 @@ repo_gpgcheck=0
|
||||
type=rpm
|
||||
gpgcheck=1
|
||||
metadata_expire=86400
|
||||
gpgkey=https://getfedora.org/static/fedora.gpg
|
||||
gpgkey=https://fedoraproject.org/fedora.gpg
|
||||
skip_if_unavailable=False
|
||||
|
||||
Reference in New Issue
Block a user