Skip to content

Commit 4fb0274

Browse files
authored
Merge pull request #59 from dev-sec/os_python
Update OpenSuSE tumbleweed image
2 parents b3060c0 + 00ddbb8 commit 4fb0274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opensuse_tumbleweed-ansible-latest/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM opensuse/tumbleweed:latest
22
LABEL maintainer="Sebastian Gumprich"
33
ENV container=docker
44

5-
RUN zypper install -y python ansible dbus-1 systemd-sysvinit shadow sudo && \
5+
RUN zypper install -y python311 ansible dbus-1 systemd-sysvinit shadow sudo && \
66
zypper clean
77

88
RUN cp /usr/lib/systemd/system/dbus.service /etc/systemd/system/; \
@@ -24,7 +24,7 @@ RUN set -xe \
2424
&& useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \
2525
&& usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \
2626
&& usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \
27-
&& sed -i "s/^# \(%${SUDO_GROUP} ALL=(ALL:ALL) NOPASSWD: ALL\)/\\1/g" /etc/sudoers
27+
&& sed -i "s/^# \(%${SUDO_GROUP} ALL=(ALL:ALL) NOPASSWD: ALL\)/\\1/g" /usr/etc/sudoers
2828

2929
# delete file created by systemd that prevents login via ssh
3030
RUN rm -f /{var/run,etc,run}/nologin

0 commit comments

Comments
 (0)