From d28e7e8ca214c3aec32859364d7b8c100a8f29fe Mon Sep 17 00:00:00 2001 From: sandwich Date: Tue, 24 Jun 2025 17:14:11 +0200 Subject: [PATCH] revert 525e86dffed8b8b6bde832d1ba79aedad7763bbb revert Adjustments for SGBoot iso --- roles/environment/tasks/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/roles/environment/tasks/main.yml b/roles/environment/tasks/main.yml index 7744051..1985c39 100644 --- a/roles/environment/tasks/main.yml +++ b/roles/environment/tasks/main.yml @@ -71,6 +71,32 @@ ansible_become_password: "" ansible_ssh_extra_args: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + - name: Speed-up Bootstrap process + ansible.builtin.lineinfile: + path: /etc/pacman.conf + regexp: ^#ParallelDownloads = + line: ParallelDownloads = 20 + + - name: Wait for Pacman + ansible.builtin.wait_for: + timeout: 15 + + - name: Setup Pacman + community.general.pacman: + update_cache: true + force: true + name: "{{ item.name }}" + state: latest + loop: + - { name: glibc } + - { name: dnf, os: [almalinux, fedora, rhel8, rhel9, rhel10, rocky] } + - { name: debootstrap, os: [debian11, debian12, ubuntu, ubuntu-lts] } + - { name: debian-archive-keyring, os: [debian11, debian12] } + - { name: ubuntu-keyring, os: [ubuntu, ubuntu-lts] } + when: "'os' not in item or os in item.os" + retries: 4 + delay: 15 + - name: Prepare /iso mount and repository for RHEL-based systems when: os | lower in ["rhel8", "rhel9", "rhel10"] block: