I want be able to create global variables in tower that can be used across multiple templates, so I don’t have to declare the variable value for each template. Is there a way to do this?
thanks
I want be able to create global variables in tower that can be used across multiple templates, so I don’t have to declare the variable value for each template. Is there a way to do this?
thanks
There isn’t a global “extra_vars” per say but there are global environment variables on the Settings => Jobs page.
You could set environment variables there and then any playbook being run would pick them up.
-John
This is interesting. Are you saying that the environment variable changes into a variable??
It does not change into a variable “on its own” but your playbook should be able to read the environment variable using the env lookup plugin.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/env_lookup.html
-John