# Contents of a Variable as a Variable in a playbook

**URL:** <https://forum.ansible.com/t/contents-of-a-variable-as-a-variable-in-a-playbook/21490>\
**Category:** Ansible Project\
**Created:** [May 19, 2016, 12:53pm UTC](https://forum.ansible.com/t/contents-of-a-variable-as-a-variable-in-a-playbook/21490 "2016-05-19T12:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pr0fess0rM](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Pr0fess0rM](https://forum.ansible.com/u/Pr0fess0rM)\
**Post date:** [May 19, 2016, 12:53pm UTC](https://forum.ansible.com/t/contents-of-a-variable-as-a-variable-in-a-playbook/21490/1 "2016-05-19T12:53:38Z")

</div>

Hi, I’m having trouble implementing this. Basically, variable basket contains the string ‘apple’ and I have already created a variable called apple that contains string ‘seed’. How do I use seed by referencing basket?

I attempted using {{ {{basket}} }} which I thought would be the equivalent of {{apple}} but that’s giving me a template error. Any other ideas? Perhaps the {{ {{basket}} }} method is correct but implemented incorrectly? Any and all help is appreciated!
