This commit fixes the error "AnsibleUndefinedVariable: 'ansible_hostname'". This error only occurs when the playbook balancers.yml is executed directly using the command
ansible-playbook balancers.yml
Host postgres_cluster is not part of this playbook, but their facts are needed in the template haproxy.cfg.j2
This commit fixes the error "AnsibleUndefinedVariable: 'ansible_hostname'". This error only occurs when the playbook
balancers.yml
is executed directly using the commandHost
postgres_cluster
is not part of this playbook, but their facts are needed in the template haproxy.cfg.j2