diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index 798c9da..faf815a 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -29,11 +29,18 @@ state: installed 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: path: /etc/dnf/dnf.conf 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 - name: remove update_etc_hosts from cloud.cfg