{"action":"opened","issue":{"url":"https://api.github.com/repos/metacloud/molecule/issues/1397","repository_url":"https://api.github.com/repos/metacloud/molecule","labels_url":"https://api.github.com/repos/metacloud/molecule/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/metacloud/molecule/issues/1397/comments","events_url":"https://api.github.com/repos/metacloud/molecule/issues/1397/events","html_url":"https://github.com/metacloud/molecule/issues/1397","id":342258180,"node_id":"MDU6SXNzdWUzNDIyNTgxODA=","number":1397,"title":"Environment variable is not defined - driver docker","user":{"login":"Pinaute","id":22305245,"node_id":"MDQ6VXNlcjIyMzA1MjQ1","avatar_url":"https://avatars2.githubusercontent.com/u/22305245?v=4","gravatar_id":"","url":"https://api.github.com/users/Pinaute","html_url":"https://github.com/Pinaute","followers_url":"https://api.github.com/users/Pinaute/followers","following_url":"https://api.github.com/users/Pinaute/following{/other_user}","gists_url":"https://api.github.com/users/Pinaute/gists{/gist_id}","starred_url":"https://api.github.com/users/Pinaute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pinaute/subscriptions","organizations_url":"https://api.github.com/users/Pinaute/orgs","repos_url":"https://api.github.com/users/Pinaute/repos","events_url":"https://api.github.com/users/Pinaute/events{/privacy}","received_events_url":"https://api.github.com/users/Pinaute/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T09:55:29Z","updated_at":"2018-07-18T09:55:29Z","closed_at":null,"author_association":"NONE","body":"# Issue Type\r\n\r\n- Bug report\r\n\r\n# Molecule and Ansible details\r\n\r\n```\r\nansible 2.5.0\r\n```\r\n\r\n```\r\nmolecule, version 2.15.0\r\n```\r\n\r\nMolecule installation method (one of):\r\n\r\n- pip\r\n\r\nAnsible installation method (one of):\r\n\r\n- pip\r\n\r\n# Desired Behavior\r\n\r\nI want to define an environment variable in the container\r\n\r\n```\r\nplatforms:\r\n  - name: debian\r\n    image: debian:9\r\n    environement:\r\n      - DATA: mydata\r\n```\r\n# Actual Behaviour\r\nI added a task in the playbook to test this\r\n```\r\n- name: Environment variable\r\n  debug:\r\n    msg: \"Environment variable : {{ lookup('env','DATA') }}\"\r\n```\r\n\r\n`molecule --debug test`\r\nBelow we can see that the environment variable is not defined\r\n```\r\n    ok: [monitoring_master] => {\r\n        \"msg\": \"Environment variable : \"\r\n    }\r\n```"}}
{"actor":{"display_login":"Pinaute"}}