# template Text Area value from AWX survey

**URL:** <https://forum.ansible.com/t/template-text-area-value-from-awx-survey/30059>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [April 4, 2019, 11:47am UTC](https://forum.ansible.com/t/template-text-area-value-from-awx-survey/30059 "2019-04-04T11:47:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guhan\_kumar](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@guhan\_kumar](https://forum.ansible.com/u/guhan_kumar)\
**Post date:** [April 4, 2019, 11:47am UTC](https://forum.ansible.com/t/template-text-area-value-from-awx-survey/30059/1 "2019-04-04T11:47:20Z")

</div>

Hi All,

I have to create the variable in group vars as below

disk:

- { device: /dev/sdb pvname: /dev/sdb1 }
- { device: /dev/sdc pvname: /dev/sdc1 }

i am getting disks name from job template survey i textarea , while templating it with below i am getting the error as list cant mapped to disk

block\_dev is the variable name from survey and passing the disk like /dev/sdb /dev/sbc (with single space)

disktemp: "{{ block\_dev.split(’ ')}}

disk: "{% for item in disktemp} - device: {{ item }} pvname: {{ item }}1 {% endfor %}

could you please help me to ender this format?
