# Unable to look up dict by key if the dict key contains a variable

**URL:** <https://forum.ansible.com/t/unable-to-look-up-dict-by-key-if-the-dict-key-contains-a-variable/21940>\
**Category:** Ansible Project\
**Created:** [July 6, 2016, 9:38pm UTC](https://forum.ansible.com/t/unable-to-look-up-dict-by-key-if-the-dict-key-contains-a-variable/21940 "2016-07-06T21:38:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneesh\_Joseph](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Aneesh\_Joseph](https://forum.ansible.com/u/Aneesh_Joseph)\
**Post date:** [July 6, 2016, 9:38pm UTC](https://forum.ansible.com/t/unable-to-look-up-dict-by-key-if-the-dict-key-contains-a-variable/21940/1 "2016-07-06T21:38:29Z")

</div>

vars.yml

`
