packages, fix the ParallelDownloads option for pacman.

This commit is contained in:
me committed 2026-11-08 19:58:45 -07:00
1 parent d24381ad1e
commit be4d8cd4f6
1 file changed
+5 -3
+5 -3
View File
@@ -41,13 +41,13 @@
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/pacman.conf" path: "/etc/pacman.conf"
regexp: '{{ item.key }}' regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE' line: '{{ item.value }}'
state: present state: present
create: true create: true
backup: true backup: true
mode: "0644" mode: "0644"
loop: 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. # 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. # Same with the blocklist for sites like Berkeley which rate limit VPNs.
@@ -61,7 +61,9 @@
state: present state: present
- name: General | Software | Packages | pacman | Artix | rate-mirrors | Update Lists - name: General | Software | Packages | pacman | Artix | rate-mirrors | Update Lists
ansible.builtin.shell: "{{ item }}" ansible.builtin.shell: |
set -o pipefail
"{{ item }}"
register: shell_check register: shell_check
changed_when: shell_check.rc == 0 changed_when: shell_check.rc == 0
loop: loop: