{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10836","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10836/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10836/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10836/events","html_url":"https://github.com/ansible/ansible/issues/10836","id":70896973,"number":10836,"title":"[docker] how to put all env variables in one ansible variable ","user":{"login":"allan-simon","id":213167,"avatar_url":"https://avatars.githubusercontent.com/u/213167?v=3","gravatar_id":"","url":"https://api.github.com/users/allan-simon","html_url":"https://github.com/allan-simon","followers_url":"https://api.github.com/users/allan-simon/followers","following_url":"https://api.github.com/users/allan-simon/following{/other_user}","gists_url":"https://api.github.com/users/allan-simon/gists{/gist_id}","starred_url":"https://api.github.com/users/allan-simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allan-simon/subscriptions","organizations_url":"https://api.github.com/users/allan-simon/orgs","repos_url":"https://api.github.com/users/allan-simon/repos","events_url":"https://api.github.com/users/allan-simon/events{/privacy}","received_events_url":"https://api.github.com/users/allan-simon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-25T11:42:39Z","updated_at":"2015-04-27T16:31:30Z","closed_at":"2015-04-27T16:31:30Z","body":"I'm trying to create one repository https://github.com/allan-simon/ansible-docker-symfony2-vagrant generic to deploy any symfony2 application.\r\n\r\nfor this I use ansible with the docker module. it works great, as long as my applications needs the same environment variables  I have no problem at all,  i define one variables file by project and that's it.\r\n\r\nbut I'm stucked for application that needs specific variables (like the address of an oauth2 server) of course I always can keep a slightly modified copy, but it kills the idea\r\n\r\nI woud like to know if there's a magic way put an array of environment variables and in my ansible playbook to simple do \r\n\r\n```\r\n    - name: nginx load balancer\r\n      docker:\r\n        name: \"{{ PROJECT_NAME }}_app_nginx_load_balancer\"\r\n        image: allansimon/nginx-load-balancer\r\n        state: started\r\n        ports:\r\n            - \"{{ PUBLIC_PORT }}:80\"\r\n        env:  {{ ALL_ENV }}   # <=  something like this \r\n\r\n```"}}