# Concatenate text and variable resulting in new variable

**URL:** <https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [December 10, 2014, 2:50pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008 "2014-12-10T14:50:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [December 10, 2014, 2:50pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008/1 "2014-12-10T14:50:11Z")

</div>

some\_var: "text\_{{ some\_other\_var }}"

This should work in either a group\_var/ or host\_var/ file

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [December 10, 2014, 3:57pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008/2 "2014-12-10T15:57:35Z")

</div>

Yep 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [December 15, 2014, 11:43am UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008/3 "2014-12-15T11:43:19Z")

</div>

Hi Eric,

This seems like a good topic for ansible-project list as it’s related to debugging an ansible playbook.

If you can paste over there that would be good.

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [December 15, 2014, 2:43pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008/4 "2014-12-15T14:43:59Z")

</div>

Looks like your messages are approved and getting across fine.
