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

Commits on Oct 5, 2023

  1. Change to avoid the error "AnsibleUndefinedVariable: 'ansible_hostname'"

    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
    TommasoDb authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    370ef8c View commit details
    Browse the repository at this point in the history
  2. Perform the task only when there are no facts

    Co-authored-by: Vitaliy Kukharik <[email protected]>
    TommasoDb and vitabaks authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    dd96b0f View commit details
    Browse the repository at this point in the history