# Return variables on task includes not working anymore

**URL:** <https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246>\
**Category:** Ansible Project\
**Created:** [April 22, 2016, 3:14pm UTC](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246 "2016-04-22T15:14:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcodix](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dcodix](https://forum.ansible.com/u/dcodix)\
**Post date:** [April 22, 2016, 3:14pm UTC](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246/1 "2016-04-22T15:14:18Z")

</div>

I use to be able to do things like:

included\_general\_task.yml

---

<div class="post-metadata">

**Author:** ![Dejay\_Clayton](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@Dejay\_Clayton](https://forum.ansible.com/u/Dejay_Clayton)\
**Post date:** [May 12, 2016, 8:07pm UTC](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246/2 "2016-05-12T20:07:16Z")

</div>

Are you intending “root\_list” and “tmp\_list” to be expanded into “{{ root\_list }}” and “{{ tmp\_list }}” (by nature of the substitution into “list”?)

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [May 14, 2016, 5:26pm UTC](https://forum.ansible.com/t/return-variables-on-task-includes-not-working-anymore/21246/3 "2016-05-14T17:26:31Z")

</div>

If I understood him correct he wants to store the results in a  
variable, whose name is not fixed but rather defined in another variable.

I wonder why one list containing the results is not a viable option.  
Dan, can you tell us?

Johannes
