# Set variable from variable?

**URL:** <https://forum.ansible.com/t/set-variable-from-variable/12564>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 23, 2013, 3:36pm UTC](https://forum.ansible.com/t/set-variable-from-variable/12564 "2013-03-23T15:36:18Z")\
**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:** [March 23, 2013, 3:36pm UTC](https://forum.ansible.com/t/set-variable-from-variable/12564/1 "2013-03-23T15:36:18Z")

</div>

Jinja2 has a 'set' keyword for this purpose, as well as if/else directives.
