Hi,
is it possible to retrieve variables defined per host with all group_vars and host_vars definitions applied?
The case:
let’s say we have a task to configure an haproxy instance.
In its config file template we iterate over servers in the webserver
group and need to retrieve the httpd_port
variable that might be defined in either some of group_vars
or host_vars
.
So for a particular server it might be a specific setting in host_vars/hostname
or a generic one from group_vars/webserver
How would you resolve it?