Compare commits

..
2 Commits
+7 -5
View File
@@ -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,12 +61,14 @@
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:
- "rate-mirrors artix | grep -v berkeley | sudo tee /etc/pacman.d/mirrorlist"
- "rate-mirrors arch | grep -v berkeley | sudo tee /etc/pacman.d/mirrorlist-arch"
- "sudo -u {{ user }} rate-mirrors artix | grep -v berkeley | tee /etc/pacman.d/mirrorlist"
- "sudo -u {{ user }} rate-mirrors arch | grep -v berkeley | tee /etc/pacman.d/mirrorlist-arch"
when: ansible_service_mgr == "runit"