Skip to content

Commit

Permalink
Fix the CI (#251)
Browse files Browse the repository at this point in the history
Fix the CI, notably Centos 8 stream testing.
  • Loading branch information
johrstrom authored Dec 4, 2024
1 parent 39e64b9 commit ea11df2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV {{ var }} {{ value }}

# Centos:8 is end of life, so hack the mirror to be the vault.
RUN . /etc/os-release && \
if [ "$NAME" == "CentOS Linux" ] && [ "$VERSION_ID" == "8" ]; then \
if [ "$NAME" == "CentOS Stream" ] && [ "$VERSION_ID" == "8" ]; then \
sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* && \
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*; \
fi
Expand Down
3 changes: 3 additions & 0 deletions molecule/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# lock ansible-core because 2.18 has issues with EL8.
# specifically https://github.com/ansible/ansible/issues/82068
ansible-core<2.17
ansible
ansible-lint
ansible_compat
Expand Down

0 comments on commit ea11df2

Please sign in to comment.