Ansible automation container with Kerberos and Windows (WinRM) support.
# 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
docker run -it --rm \
-v $(pwd):/workspace \
ghcr.io/tuxpeople/ansible:latest \
/bin/bash
docker run -it --rm \
-v $(pwd)/inventory:/inventory \
ghcr.io/tuxpeople/ansible:latest \
ansible all -i /inventory/hosts -m ping
ansible - Automation frameworkvirtualenv - Python virtual environmentspywinrm - Windows Remote Managementkrb5-user - Kerberos authentication toolsMount your Kerberos config:
docker run -it --rm \
-v /etc/krb5.conf:/etc/krb5.conf:ro \
ghcr.io/tuxpeople/ansible:latest
Mount your SSH keys for host authentication:
docker run -it --rm \
-v ~/.ssh:/home/ansible/.ssh:ro \
ghcr.io/tuxpeople/ansible:latest
docker run -it --rm \
-v $(pwd):/ansible \
-w /ansible \
ghcr.io/tuxpeople/ansible:latest \
ansible-playbook playbook.yml
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
latest - Latest stable releaseX.Y.Z - Specific versionX.Y - Minor version (floating)X - Major version (floating)main - Latest build from main branchnightly - Nightly buildansible (UID 1000)Content type
Image
Digest
sha256:9b4a82d5f…
Size
215.3 MB
Last updated
8 months ago
docker pull tdeutsch/ansible