The inventory file variables aren't available in the jobtemplates.
We defined in an inventory file a variable in YAML format:
env: staging
We added the inventory file to a job template, so the variable would be used but while running the job we received an variable is undefined error in the playbook.
As workaround we added the variable to the job template, this made the variable available in the playbook.
Hello @MikeySmet
Thanks for creating this issue. Can elaborate on how you added the inventory file to the job template? Did you use a project-based inventory?
Can you provide example project that can be used to reliably reproduce the problem?
@jakemcdermott not sure if this is what @MikeySmet encountered but for me declaring variables in the Inventory as shown below:

Don't work anymore, those variables are not inherited when you run any job template that uses such inventory. Previous versions are working.
probably related to #2574 #2614
@ryan012880 indeed that's how I declared the variables. It happened after upgrading from version 1.0.8 to 2.1.0.
This is very likely resolved by https://github.com/ansible/awx/pull/2614
We updated the 2.1.0 yesterday and are encountering this exactly. Would you like me to open up a new ticket?
This is resolved by version 2.1.1.
Most helpful comment
@jakemcdermott not sure if this is what @MikeySmet encountered but for me declaring variables in the Inventory as shown below:
Don't work anymore, those variables are not inherited when you run any job template that uses such inventory. Previous versions are working.
probably related to #2574 #2614