Hi Manuel -- this isn't entirely true. The Ansible provisioner has a built-in ssh proxy server that allows you to run ansible against Docker without doing too much complicated stuff locally.
There are a couple of "gotchas" around the ansible version, since some versions of ansible that try to do pipelineing can cause issues with the proxy adapter, but assuming you're on unix distros, this should work okay. Here's a silly/simple example template that works on my machine:
```
{
"variables": {
"mytopping": "mushroom"
},
"builders": [
{
"type": "docker",
"name": "party parrot build",
"image": "williamyeh/ansible:ubuntu14.04",
"export_path": "packer_bug",
"run_command": [ "-d", "-i", "-t", "--entrypoint=/bin/bash", "{{.Image}}" ]
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "./playbooks/playbook_remote.yml",
"extra_arguments": ["--extra-vars", "pizza_toppings={{ user `mytopping`}}"]
},
{
"type": "shell",
"inline": ["ls -alh ~"]
}
]
}
```