Skip to content

Commit

Permalink
Add ansible to podman-machine-os
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
baude committed Jan 21, 2025
1 parent e6ed26c commit 3eb7c58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podman-image/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3eb7c58

Please sign in to comment.