summaryrefslogtreecommitdiffstats
path: root/molecule/archlinux/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/archlinux/Dockerfile.j2')
-rw-r--r--molecule/archlinux/Dockerfile.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/molecule/archlinux/Dockerfile.j2 b/molecule/archlinux/Dockerfile.j2
index 3dc35f2d..b1e8c143 100644
--- a/molecule/archlinux/Dockerfile.j2
+++ b/molecule/archlinux/Dockerfile.j2
@@ -18,6 +18,10 @@ RUN (cd /lib/systemd/system/sysinit.target.wants/; \
# https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/59
RUN cp -r /usr/share/i18n/locales/en_US /usr/share/i18n/locales/de_DE;
+# Enable passwordless sudo for test_group (created by the user role)
+RUN echo '%test_group ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/test_group && \
+ chmod 0440 /etc/sudoers.d/test_group
+
VOLUME ["/sys/fs/cgroup"]
CMD ["/lib/systemd/systemd"]