# build environment variable from group variables

**URL:** <https://forum.ansible.com/t/build-environment-variable-from-group-variables/12637>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [April 5, 2013, 9:03pm UTC](https://forum.ansible.com/t/build-environment-variable-from-group-variables/12637 "2013-04-05T21:03:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [April 5, 2013, 9:03pm UTC](https://forum.ansible.com/t/build-environment-variable-from-group-variables/12637/1 "2013-04-05T21:03:40Z")

</div>

Variables are lazily evaluated when needed so it is ok to reference group variables in $vars\_files and then use them later, like in an environment keyword, without any issue.
