Skip to content

Commit

Permalink
Fix ansible tests for centos 8 (#4992)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk authored Jun 17, 2024
1 parent 26cad31 commit 66bc101
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deployments/ansible/molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% if item.image not in ["opensuse12", "opensuse15", "centos9"] %}
FROM geerlingguy/docker-{{ item.image }}-ansible:latest
{% if item.image == "centos8" %}
RUN sed -i 's|#mirrorlist|mirrorlist|g' /etc/yum.repos.d/CentOS*.repo
RUN sed -i 's|^baseurl|#baseurl|' /etc/yum.repos.d/CentOS*.repo
RUN sed -i 's|\$releasever|8-stream|g' /etc/yum.repos.d/CentOS*.repo
{% elif item.image == "debian9" %}
{% if item.image == "debian9" %}
RUN sed -i 's|http://.*.debian.org|http://archive.debian.org|' /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
{% endif %}
Expand Down

0 comments on commit 66bc101

Please sign in to comment.