bootstrap - dnf boosts, 20 paralellism/disable fastestmirror

This commit is contained in:
Josh Lay 2020-06-03 21:11:08 -05:00
parent 240882114a
commit 4fd64be73e

View file

@ -29,11 +29,18 @@
state: installed state: installed
when: (ansible_distribution in ["CentOS", "Red Hat Enterprise Linux", "RedHat", "Fedora"] and not is_atomic) when: (ansible_distribution in ["CentOS", "Red Hat Enterprise Linux", "RedHat", "Fedora"] and not is_atomic)
- name: enable fastestmirror (fedora - non-atomic) - name: disable fastestmirror (fedora - non-atomic)
lineinfile: lineinfile:
path: /etc/dnf/dnf.conf path: /etc/dnf/dnf.conf
regexp: "^fastestmirror=" regexp: "^fastestmirror="
line: "fastestmirror=True" line: "fastestmirror=False"
when: ansible_distribution in ["Fedora"] and not is_atomic
- name: dnf - set max_parallel_downloads to 20 (fedora - non-atomic)
lineinfile:
path: /etc/dnf/dnf.conf
regexp: "^max_parallel_downloads="
line: "max_parallel_downloads=20"
when: ansible_distribution in ["Fedora"] and not is_atomic when: ansible_distribution in ["Fedora"] and not is_atomic
- name: remove update_etc_hosts from cloud.cfg - name: remove update_etc_hosts from cloud.cfg