Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to avoid the error "AnsibleUndefinedVariable: 'ansible_hostname'" #483

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

TommasoDb
Copy link
Contributor

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.
Host `postgres_cluster` is not part of this playbook, but the their facts are needed in the template haproxy.cfg
@vitabaks
Copy link
Owner

vitabaks commented Oct 5, 2023

ok, thanks @TommasoDb

@vitabaks vitabaks merged commit e65abf1 into vitabaks:master Oct 5, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants