Skip to content

Commit e7fb431

Browse files
committed
Use Python 3.12 for Rocky 8 to be compatible with current Ansible version
Signed-off-by: Martin Schurz <[email protected]>
1 parent 81d9388 commit e7fb431

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rocky8-ansible-latest/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ RUN yum makecache --timer \
2121
sudo \
2222
which \
2323
hostname \
24-
python3 \
25-
python3-pip \
24+
python3.12 \
25+
python3.12-pip \
2626
&& yum clean all
2727

2828
# upgrade pip because of the rust dependency error
29-
RUN pip3 install --no-cache-dir --upgrade pip && \
30-
pip3 install --no-cache-dir ansible
29+
RUN pip3.12 install --no-cache-dir --upgrade pip && \
30+
pip3.12 install --no-cache-dir ansible
3131

3232
# Disable requiretty.
3333
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers

0 commit comments

Comments
 (0)