I think you could do this by caching the result which I think you’d need to set using “set_fact” and setting “cacheable” to be True and enable caching for the job_template in AWX.
I was able to gather facts for the host. But when i am customizing my notification body for email notification I am not able to include the variable and getting below error.