AWX survey varible alwasy treated as a string

Hello,
I have AWX 13.0 and ansible 2.9. I have a template in AWX that has a survey.
I set and send an integer value to a playbook via --extra_vars.
The problem is the playbook sends a string to the device I am working with. The device

responds if the value sent (a switch configuration) is an integer, like 993. but it I

set the variable: “{{ PORT }}” the device does not take the value, as it want an integer, not a string.

If I hard code the number into the playbook - 993 - the device responds.
Is there a way to fix this?

thanks,
ewholz1

{{Var_name|int}}

Place this in ansible.cfg

jinja2_native = true

https://github.com/ansible/ansible/pull/32738#issuecomment-407519803

Walter

Hello Guys,
I tried both of these with no luck. I will take another look at the ansible.cfg file though.

Thank for the replies,

ewholz

You need an ansible.cfg at the base of your git repo (ansible tower project).

Walter