diff --git a/zuul.d/playbooks/pre-gate-cleanup.yml b/zuul.d/playbooks/pre-gate-cleanup.yml index e55f2a9a07..bdb0f95884 100644 --- a/zuul.d/playbooks/pre-gate-cleanup.yml +++ b/zuul.d/playbooks/pre-gate-cleanup.yml @@ -33,6 +33,32 @@ state: absent when: ansible_pkg_mgr == 'dnf' + - name: Replace mirrorlist with specific mirrors for Rocky + when: + - ansible_facts['distribution'] | lower == 'rocky' + block: + - name: Comment out mirrorlist for Rocky + replace: + path: "/etc/yum.repos.d/{{ item }}" + regexp: "^(mirrorlist=.*)$" + replace: "#\\1" + with_items: + - rocky.repo + - rocky-extras.repo + - rocky-devel.repo + - rocky-addons.repo + + - name: Uncomment baseurl for Rocky + replace: + path: "/etc/yum.repos.d/{{ item }}" + regexp: "^#(baseurl=.*)$" + replace: "\\1" + with_items: + - rocky.repo + - rocky-extras.repo + - rocky-devel.repo + - rocky-addons.repo + - name: Adjust ssh server configuration based on STIG requirements vars: sshd_settings: