Sign inSign up

tdeutsch/ansible

By tdeutsch

•Updated 8 months ago

Container image for ansible

Image
0

8.6K

tdeutsch/ansible repository overview

⁠ansible

Ansible automation container with Kerberos and Windows (WinRM) support.

⁠Features

  • Ansible 13.1.0 (latest stable)
  • Kerberos Support for authentication
  • WinRM Support for Windows automation
  • Multi-Architecture support (amd64, arm64)
  • Non-root user (ansible)
  • Based on Ubuntu 24.04 LTS

⁠Usage

⁠Run Ansible Playbook
# Mount your playbooks and inventory
docker run -it --rm \
  -v $(pwd)/playbooks:/playbooks \
  -v $(pwd)/inventory:/inventory \
  ghcr.io/tuxpeople/ansible:latest \
  ansible-playbook -i /inventory/hosts /playbooks/site.yml
⁠Interactive Shell
docker run -it --rm \
  -v $(pwd):/workspace \
  ghcr.io/tuxpeople/ansible:latest \
  /bin/bash
⁠Run ad-hoc Command
docker run -it --rm \
  -v $(pwd)/inventory:/inventory \
  ghcr.io/tuxpeople/ansible:latest \
  ansible all -i /inventory/hosts -m ping

⁠Installed Packages

  • ansible - Automation framework
  • virtualenv - Python virtual environments
  • pywinrm - Windows Remote Management
  • krb5-user - Kerberos authentication tools

⁠Configuration

⁠Kerberos Configuration

Mount your Kerberos config:

docker run -it --rm \
  -v /etc/krb5.conf:/etc/krb5.conf:ro \
  ghcr.io/tuxpeople/ansible:latest
⁠SSH Keys

Mount your SSH keys for host authentication:

docker run -it --rm \
  -v ~/.ssh:/home/ansible/.ssh:ro \
  ghcr.io/tuxpeople/ansible:latest

⁠Examples

⁠Basic Playbook Execution
docker run -it --rm \
  -v $(pwd):/ansible \
  -w /ansible \
  ghcr.io/tuxpeople/ansible:latest \
  ansible-playbook playbook.yml
⁠With Vault Password
docker run -it --rm \
  -v $(pwd):/ansible \
  -w /ansible \
  -e ANSIBLE_VAULT_PASSWORD_FILE=/ansible/.vault_pass \
  ghcr.io/tuxpeople/ansible:latest \
  ansible-playbook playbook.yml

⁠Image Tags

  • latest - Latest stable release
  • X.Y.Z - Specific version
  • X.Y - Minor version (floating)
  • X - Major version (floating)
  • main - Latest build from main branch
  • nightly - Nightly build

⁠Security

  • Runs as non-root user ansible (UID 1000)
  • No secrets baked into image
  • Regular security scans with Trivy
  • Signed with Cosign

Tag summary

Content type

Image

Digest

sha256:9b4a82d5f…

Size

215.3 MB

Last updated

8 months ago

docker pull tdeutsch/ansible