# How to Use AWX 'limit' Value in Extra Vars or Playbook Variables"

**URL:** <https://forum.ansible.com/t/how-to-use-awx-limit-value-in-extra-vars-or-playbook-variables/5844>\
**Category:** Get Help\
**Tags:** template, ubuntu, awx\
**Created:** [May 16, 2024, 5:01pm UTC](https://forum.ansible.com/t/how-to-use-awx-limit-value-in-extra-vars-or-playbook-variables/5844 "2024-05-16T17:01:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaroc20](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alvaroc20/32/3485_2.png) [@alvaroc20](https://forum.ansible.com/u/alvaroc20)\
**Post date:** [May 16, 2024, 5:01pm UTC](https://forum.ansible.com/t/how-to-use-awx-limit-value-in-extra-vars-or-playbook-variables/5844/1 "2024-05-16T17:01:10Z")

</div>

Hello,

I am currently working with AWX and I would like to know if it’s possible to use the `limit` value (which is defined by AWX) in the extra variables or directly within my playbook variables. Specifically, I want to set a variable `region` to have the same value as the `limit`.

Here’s what I have tried so far:

```auto
---
ansible_ssh_timeout: 60
ansible_user: ubuntu
region: "{{ limit }}"
build_number: latest

```

However, when I run my job, the region variable gets the value:

```auto
"region": {
  "[object Object]": null
}

```

Instead of the expected limit value.

Could someone please guide me on how to correctly reference the limit value in the extra vars or within my playbook variables? Any help or examples would be greatly appreciated.

Thank you!
