Fix conditional checks with inventory_hostname

This commit is contained in:
2020-04-06 12:36:35 -04:00
parent 2afccf44fb
commit fe40811f2b
3 changed files with 9 additions and 9 deletions

View File

@ -3,6 +3,6 @@
listen_tls = 0
listen_tcp = 1
listen_addr = "{% for node in pvc_nodes if node.hostname == ansible_hostname %}{{ node.cluster_ip }}{% endfor %}"
listen_addr = "{% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}{% endfor %}"
tcp_port = "16509"
auth_tcp = "none"