Compare commits
2
Commits
d24381ad1e
...
5d3040da71
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d3040da71 | ||
|
|
be4d8cd4f6 |
@@ -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,12 +61,14 @@
|
|||||||
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:
|
||||||
- "rate-mirrors artix | grep -v berkeley | sudo tee /etc/pacman.d/mirrorlist"
|
- "sudo -u {{ user }} rate-mirrors artix | grep -v berkeley | tee /etc/pacman.d/mirrorlist"
|
||||||
- "rate-mirrors arch | grep -v berkeley | sudo tee /etc/pacman.d/mirrorlist-arch"
|
- "sudo -u {{ user }} rate-mirrors arch | grep -v berkeley | tee /etc/pacman.d/mirrorlist-arch"
|
||||||
|
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user