I have this inventory file
inventory/hosts_elk
[elk-client-0]
10.11.22.22
Now I have a template, and I want to do this
elk_server.yml.j2
elk_server = {{ elk-client-0 }}
But that doesn't work, that is the value for {{ elk-client-0 }} does NOT get substituted.
What is the correct syntax so when the template gets laid out on the server, the resulting file looks like
elk_server = 10.11.22.22