From 3eb7c5859a8d12d41553a18968edb7a79f840e0e Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Fri, 17 Jan 2025 09:17:01 -0600 Subject: [PATCH] Add ansible to podman-machine-os add ansible to the machine image so users can execute a playbook once the machine is booted. Users have been asking for a way to automaticaly configure a machine with various options, files (like certificates), and configuration tweaks. Ansible is an excellent tool to do this in the machine. See also containers/podman#25043 Signed-off-by: Brent Baude --- podman-image/Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podman-image/Containerfile b/podman-image/Containerfile index 91fb6d7..995a0b3 100644 --- a/podman-image/Containerfile +++ b/podman-image/Containerfile @@ -58,7 +58,8 @@ RUN if [[ ${PODMAN_RPM_TYPE} == "dev" ]]; then \ # Install subscription-manager and enable service to refresh certificates # Install qemu-user-static for bootc # Install gvisor-tap-vsock-gvforwarder for hyperv -RUN rpm-ostree install subscription-manager gvisor-tap-vsock-gvforwarder qemu-user-static && rm -fr /var/cache +# Install ansible for post-install configuration +RUN rpm-ostree install subscription-manager gvisor-tap-vsock-gvforwarder qemu-user-static ansible-core && rm -fr /var/cache RUN systemctl enable rhsmcertd.service # Patching qemu backed binfmt configurations to use the actual executable's permissions and not the interpreter's