fix(bootstrap): ensure chroot DNS resolution before installing extra packages
This commit is contained in:
@@ -19,6 +19,13 @@
|
|||||||
register: bootstrap_dnf_base_result
|
register: bootstrap_dnf_base_result
|
||||||
changed_when: bootstrap_dnf_base_result.rc == 0
|
changed_when: bootstrap_dnf_base_result.rc == 0
|
||||||
|
|
||||||
|
- name: Ensure chroot has DNS resolution
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: /run/NetworkManager/resolv.conf
|
||||||
|
dest: /mnt/etc/resolv.conf
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
|
||||||
- name: Install extra packages
|
- name: Install extra packages
|
||||||
ansible.builtin.command: >-
|
ansible.builtin.command: >-
|
||||||
{{ chroot_command }} dnf --releasever={{ os_version }} --setopt=install_weak_deps=False
|
{{ chroot_command }} dnf --releasever={{ os_version }} --setopt=install_weak_deps=False
|
||||||
|
|||||||
Reference in New Issue
Block a user