I have a hardcoded hostvars line, like so:
node1_hostname={{ hostvars['192.168.0.162']['node1_hostname'] }}
I have a set_fact
variable from a previous play that I'd like to expand in the host section of the hostvars declaration, instead of the IP address. Can hostvars take expansion inside those brackets and single quotes?
Thanks.