# register variable value + string

**URL:** <https://forum.ansible.com/t/register-variable-value-string/22639>\
**Category:** Ansible Project\
**Created:** [September 25, 2016, 6:48pm UTC](https://forum.ansible.com/t/register-variable-value-string/22639 "2016-09-25T18:48:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Cheng](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Post date:** [September 25, 2016, 6:48pm UTC](https://forum.ansible.com/t/register-variable-value-string/22639/1 "2016-09-25T18:48:31Z")

</div>

Does anyone know how I would go about to register values into variable + string (within a loop), so something like:

`

register: “{{ item }}”\_LIST  
with\_items: “{{ LIST.stdout\_lines }}”

or

register: {{ item }}\_LIST

`

---

<div class="post-metadata">

**Author:** ![ZillaYT](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Post date:** [September 26, 2016, 3:13pm UTC](https://forum.ansible.com/t/register-variable-value-string/22639/2 "2016-09-26T15:13:48Z")

</div>

I don’t think this is possible. I also experimented with this and discovered, as you did, that it may not be possible.
