ansible/ansible — pull request #7400 by etehtsea (2014-05-14 14:17:26+00:00)
Title: Fix env splitting in docker module

ENV variable value could contain '=' (for example mysql://host/db?pool=10)

```
- name: Start container
docker: image= state=present env="DATABASE_URL={{ database_url }}"
```

```
ansible-playbook -i hosts -vvvv -e "database_url=mysql://localhost/db?pool=128" playbook.yml
```

```
Traceback (most recent call last):
File "/home/deploy/.ansible/tmp/ansible-tmp-1400074971.47-215002668530421/docker", line 1812, in
main()
File "/home/deploy/.ansible/tmp/ansible-tmp-1400074971.47-215002668530421/docker", line 646, in main
manager = DockerManager(module)
File "/home/deploy/.ansible/tmp/ansible-tmp-1400074971.47-215002668530421/docker", line 371, in __init__
self.env = dict(map(lambda x: x.split("="), env))
ValueError: dictionary update sequence element #0 has length 3; 2 is required

FATAL: all hosts have already failed -- aborting
```