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:
---
ansible_ssh_timeout: 60
ansible_user: ubuntu
region: "{{ limit }}"
build_number: latest
However, when I run my job, the region variable gets the value:
"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!