From be4d8cd4f66907eff59b58e8edc330df3798c0f7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 8 Nov 2026 19:58:45 -0700 Subject: [PATCH] packages, fix the ParallelDownloads option for pacman. --- tasks/general/software/packages.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/general/software/packages.yml b/tasks/general/software/packages.yml index feaa8b7..215808a 100644 --- a/tasks/general/software/packages.yml +++ b/tasks/general/software/packages.yml @@ -41,13 +41,13 @@ ansible.builtin.lineinfile: path: "/etc/pacman.conf" regexp: '{{ item.key }}' - line: '{{ item.value }} # MANAGED BY ANSIBLE' + line: '{{ item.value }}' state: present create: true backup: true mode: "0644" loop: - - { "key": '^[\#]?ParallelDownloads', "value": 'ParallelDownloads 3'} + - { "key": '^[\#]?ParallelDownloads', "value": 'ParallelDownloads = 3'} # TBD / TODO: Do the mirrorlist files and distros based on facts in case ever using Arch, Manjaro, etc. # Same with the blocklist for sites like Berkeley which rate limit VPNs. @@ -61,7 +61,9 @@ state: present - name: General | Software | Packages | pacman | Artix | rate-mirrors | Update Lists - ansible.builtin.shell: "{{ item }}" + ansible.builtin.shell: | + set -o pipefail + "{{ item }}" register: shell_check changed_when: shell_check.rc == 0 loop: