2022-02-16 03:42:32 +01:00
|
|
|
# https://www.ansible.com/
|
|
|
|
#
|
|
|
|
# Note: SELinux requires the :Z attribute set on volumes in Podman/Docker.
|
|
|
|
#
|
|
|
|
# podman run --rm \
|
|
|
|
# -it \
|
|
|
|
# -v ${PWD}/hosts:/etc/ansible/hosts:Z \
|
|
|
|
# -v ${PWD}/ansible.cfg:/etc/ansible/ansible.cfg:Z \
|
|
|
|
# -v ${HOME}/.ssh:/root/.ssh:Z \
|
|
|
|
# ansible all -m ping
|
|
|
|
#
|
|
|
|
FROM python:3-alpine
|
2022-07-24 00:30:09 +02:00
|
|
|
LABEL maintainer "Jeffrey Serio <hyperreal@fedoraproject.org>"
|
2022-02-16 03:42:32 +01:00
|
|
|
|
|
|
|
RUN builddeps=' \
|
|
|
|
musl-dev \
|
|
|
|
openssl-dev \
|
|
|
|
libffi-dev \
|
|
|
|
gcc \
|
|
|
|
' \
|
|
|
|
&& apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
$builddeps \
|
|
|
|
&& pip install ansible \
|
|
|
|
&& apk del --purge $builddeps
|
|
|
|
|
|
|
|
ENTRYPOINT [ "ansible" ]
|