# host\_vars/group\_vars issue with ansible 1.1+

**URL:** <https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650>\
**Category:** Ansible Project\
**Created:** [April 8, 2013, 4:02pm UTC](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650 "2013-04-08T16:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian\_Arrotin](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@Fabian\_Arrotin](https://forum.ansible.com/u/Fabian_Arrotin)\
**Post date:** [April 8, 2013, 4:02pm UTC](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650/1 "2013-04-08T16:02:48Z")

</div>

Well, in fact I already answered on myself on #ansible with a "/me slaps himself : since 1.1+ ${environment} can’t be used and it’s now internally used … time to update my inventory/playbooks/templates "

We use(d) a variable called ‘environment’ (to reflect our usual environments : acc/pil/prod - aka acceptance/pilot/production) but starting with 1.1 it’s not possible anymore (and that can be found in your blog post too - [http://blog.ansibleworks.com/2013/04/02/ansible-1-1-released/](http://blog.ansibleworks.com/2013/04/02/ansible-1-1-released/) ) :  
“Another powerful feature I want to highlight — the new “environment” keyword can quickly swap in environment settings for different tasks, allowing users to easily work with multiple proxy servers (or no proxy server) when dealing with content coming from different sources.”

It’s just after having posted that thread that I discovered that only that variable wasn’t correctly interpreted/translated/rendered … so a wild grep environment in the code showed me why 🙂  
I so tweeted also directly after that : "Just updated massively our [~~#~~ **ansible**](https://twitter.com/search?q=%23ansible&src=hash) playbooks/templates/inventory to _not_ use ‘environment’ anymore to be [~~#~~ **ansible**](https://twitter.com/search?q=%23ansible&src=hash) 1.1 compatible [~~#~~ **varcheck" 😉**](https://twitter.com/search?q=%23varcheck&src=hash)

**Fabian**

---

<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 8, 2013, 11:40pm UTC](https://forum.ansible.com/t/host-vars-group-vars-issue-with-ansible-1-1/12650/2 "2013-04-08T23:40:54Z")

</div>

So is the issue the environment keyword should just set something internally like \_\_environment to avoid possible conflicts with some existing use of a variable named environment?

That seems reasonable if so.
