24 lines
732 B
YAML
24 lines
732 B
YAML
---
|
|
- name: Bootstrap Fedora 42
|
|
vars:
|
|
bootstrap_fedora_extra: >-
|
|
{{
|
|
(
|
|
lookup('vars', bootstrap_var_key)
|
|
)
|
|
| join(' ')
|
|
}}
|
|
ansible.builtin.command: "{{ item }}"
|
|
loop:
|
|
- >-
|
|
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=42 --setopt=install_weak_deps=False
|
|
install -y {{ bootstrap_fedora_extra }}
|
|
- arch-chroot /mnt dnf reinstall -y kernel-core
|
|
register: bootstrap_result
|
|
changed_when: bootstrap_result.rc == 0
|