Replace usage of mirrorlist with an official Rocky mirror
Out of the box Rocky image goes with mirrorlist defined, while baseurl is commented out. Until there're infra mirrors available, let's ensure we are not picking out of the mirror list as it proved itself being unreliable and 3rd party mirrors are getting desynced, which causes failures in CI. Change-Id: Id7593236f1ea121ae7cbc3fc0c58ca9df8a1deac
This commit is contained in:
parent
d441d1d62f
commit
742d933dc8
@ -33,6 +33,32 @@
|
|||||||
state: absent
|
state: absent
|
||||||
when: ansible_pkg_mgr == 'dnf'
|
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
|
- name: Adjust ssh server configuration based on STIG requirements
|
||||||
vars:
|
vars:
|
||||||
sshd_settings:
|
sshd_settings:
|
||||||
|
Loading…
Reference in New Issue
Block a user