# Using lists in AWX survey

**URL:** <https://forum.ansible.com/t/using-lists-in-awx-survey/32651>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 10, 2020, 10:23am UTC](https://forum.ansible.com/t/using-lists-in-awx-survey/32651 "2020-04-10T10:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [April 10, 2020, 10:23am UTC](https://forum.ansible.com/t/using-lists-in-awx-survey/32651/1 "2020-04-10T10:23:06Z")

</div>

Hi all,

my scenario:  
I have a list of vlanids, in a vars files, for an playbook that works when executed from a controller, but I can’t it to work when I try the same from AWX

the vars I am working with in the controller playbook  
vlanid:

- ‘0302’
- ‘0303’

dynamic\_vlanid:

- ‘0210’
- ‘0211’

I need to keep the leading ‘0’ to meet a naming standard, but also need to ensure that if the number hits the 1000’s it will still work, hence the number between ‘xxxx’  
This works fine from the controller, when I get to AWX & create a Survey for the end user to fill in, I can’t get the ‘xxxx’ option to work, I get this message, which does not mean much to me.

{  
“\_ansible\_parsed”: true,  
“\_ansible\_item\_result”: true,  
“\_ansible\_no\_log”: false,  
“changed”: false,  
“item”: [  
“ZAR”,  
“- ‘0302’\n- ‘0303’”  
],  
“invocation”: {  
“module\_args”: {  
“username”: “admin”,  
“pool\_allocation\_mode”: “static”,  
“block\_end”: “- ‘0302’\n- ‘0303’”,  
“use\_proxy”: true,  
“block\_start”: “- ‘0302’\n- ‘0303’”,  
“output\_level”: “normal”,  
“block\_name”: “- ‘0302’\n- ‘0303’”,  
“state”: “present”,  
“timeout”: 30,  
“host”: “172.21.11.21”,  
“use\_ssl”: true,  
“password”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“validate\_certs”: false,  
“pool”: “vlan\_ZAR\_static”  
}  
},  
“msg”: “argument block\_end is of type \<type ‘str’\> and we were unable to convert to int: invalid literal for int() with base 10: "- ‘0302’\n- ‘0303’"”,  
“\_ansible\_ignore\_errors”: null,  
“\_ansible\_item\_label”: [  
“ZAR”,  
“- ‘0302’\n- ‘0303’”  
]  
}

In the Survey I have tried using ‘Textarea’, ‘Float’ & ‘Integer’ but not had any luck getting it to work.

I have also tried adding the vars & an Extra Variable, that too did not seem to work.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [April 11, 2020, 4:19pm UTC](https://forum.ansible.com/t/using-lists-in-awx-survey/32651/2 "2020-04-11T16:19:00Z")

</div>

How do get the Ansible vars on the controller  
vars:  
vlanid:

- ‘0201’
- ‘0202’

To look the same in AWX
