mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-29 20:13:13 +00:00
The previous image versions set ANSIBLE_WORKER_SESSION_ISOLATION=False in an attempt to restore SSH prompts on Ansible 2.21. That setting does not bring the prompts back — it makes Ansible hang silently at the first SSH connection whenever a prompt would have been needed. See https://github.com/devture/docker-ansible/issues/6 The new image auto-accepts the SSH host keys of previously unknown hosts instead. The docs stop recommending ANSIBLE_WORKER_SESSION_ISOLATION=False for direct (non-Docker) runs for the same reason, and now explain how to use an ssh-agent for passphrase-protected SSH keys. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
351 B
Docker
14 lines
351 B
Docker
# SPDX-FileCopyrightText: 2025 Jonah Aragon
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
FROM ghcr.io/devture/ansible:14.0.0-r0-3
|
|
|
|
# Install additional packages
|
|
RUN apk add --no-cache \
|
|
pwgen
|
|
|
|
# Preserve command history across container restarts
|
|
RUN SNIPPET="export HISTFILE=/commandhistory/.ash_history" \
|
|
&& echo "$SNIPPET" >> "/root/.profile"
|