From 43c19f3d90f1731d6d65f8fb917eab0b8b0dcf09 Mon Sep 17 00:00:00 2001 From: Fanch <fanch@libre.bzh> Date: Sat, 26 Mar 2022 16:24:44 +0100 Subject: [PATCH] fix for ansible lint + use podman for molecule test --- .ansible-lint | 7 +++++++ molecule/default/Dockerfile.j2 | 28 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .ansible-lint create mode 100644 molecule/default/Dockerfile.j2 diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..3ed5d11 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +--- + +warn_list: + - experimental # all rules tagged as experimental + - fqcn-builtins # Use FQCN for builtin actions. + - risky-file-permissions # File permissions unset or incorrect. + - git-latest diff --git a/molecule/default/Dockerfile.j2 b/molecule/default/Dockerfile.j2 new file mode 100644 index 0000000..a0f27e6 --- /dev/null +++ b/molecule/default/Dockerfile.j2 @@ -0,0 +1,28 @@ +{% if item.registry is defined %} +FROM {{ item.registry.url }}/{{ item.image }} +{% else %} +FROM {{ item.image }} +{% endif %} + +FROM archlinux/archlinux:base-devel + +ENV container docker + +RUN pacman -Syu --noconfirm +RUN pacman -S systemd dbus python emacs-nox bash-completion --noconfirm +RUN pacman -Scc --noconfirm + +RUN rm \ + /usr/lib/systemd/system/sysinit.target.wants/systemd-firstboot.service \ + /usr/lib/systemd/system/systemd-firstboot.service + +# RUN systemctl set-default multi-user.target +RUN systemctl set-default sysinit.target + +VOLUME [ "/sys/fs/cgroup" ] +#, "/run", "/run/lock", "/tmp" ] + +STOPSIGNAL SIGRTMIN+3 + +# CMD ["/usr/lib/systemd/systemd", "--log-level=info", "--unit=multi-user.target"] +CMD ["/sbin/init"] -- GitLab