# Sending a variable info. to AWX by python

**URL:** <https://forum.ansible.com/t/sending-a-variable-info-to-awx-by-python/27448>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 3, 2018, 11:27pm UTC](https://forum.ansible.com/t/sending-a-variable-info-to-awx-by-python/27448 "2018-05-03T23:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YK\_K](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@YK\_K](https://forum.ansible.com/u/YK_K)\
**Post date:** [May 3, 2018, 11:27pm UTC](https://forum.ansible.com/t/sending-a-variable-info-to-awx-by-python/27448/1 "2018-05-03T23:27:44Z")

</div>

Hello

I send Interface name(variable) to AWX through Python code,  
and AWX execute a template by receiving the information as extra\_vas.

However, the following error is displayed on the AWX UI.

Both of these codes failed.  
Could you help me to resolve the issue.

Thanks in advance

Cheers,

This is my python code #1

---

<div class="post-metadata">

**Author:** ![YK\_K](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@YK\_K](https://forum.ansible.com/u/YK_K)\
**Post date:** [May 4, 2018, 2:02am UTC](https://forum.ansible.com/t/sending-a-variable-info-to-awx-by-python/27448/2 "2018-05-04T02:02:40Z")

</div>

I found a solution.

When I run Rest API POST, I found “ignored\_fields”:{“extra\_vars”:{“int”:“eth1/1”}} message.

So , refer to this page  
[http://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html](http://docs.ansible.com/ansible-tower/latest/html/administration/tipsandtricks.html)

I enabled “ask\_variables\_on\_launch” for a template .

it was fixed. 🙂

[![](https://lh3.googleusercontent.com/-6byGsN06Y4E/Wuu-nz-4ikI/AAAAAAAAAOo/a8siL5S8wYUI7csXiAc4Ql7tShVB8CZhACLcBGAs/s320/1.PNG)](https://lh3.googleusercontent.com/-6byGsN06Y4E/Wuu-nz-4ikI/AAAAAAAAAOo/a8siL5S8wYUI7csXiAc4Ql7tShVB8CZhACLcBGAs/s1600/1.PNG)
