# Jinja2 variable substitution in the YAML map key

**URL:** <https://forum.ansible.com/t/jinja2-variable-substitution-in-the-yaml-map-key/20352>\
**Category:** Ansible Developer\
**Created:** [January 26, 2016, 1:03pm UTC](https://forum.ansible.com/t/jinja2-variable-substitution-in-the-yaml-map-key/20352 "2016-01-26T13:03:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jiri](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jiri](https://forum.ansible.com/u/Jiri)\
**Post date:** [January 26, 2016, 1:03pm UTC](https://forum.ansible.com/t/jinja2-variable-substitution-in-the-yaml-map-key/20352/1 "2016-01-26T13:03:05Z")

</div>

I have notices that if I use a Jinja2 variable in the YAML map key, it’s not substituted by the variable’s value as in the array and the map value. For example if I have the following playbook:

`
