Skip to content

Commit

Permalink
Fix wait_for host
Browse files Browse the repository at this point in the history
Ansible by default waits for a port on host "127.0.0.1".

On some environments (Ubuntu 20.04 travis/docker) carbon_relay_ng starts
up on 127.0.1.1 and ansible_wait_for cannot connect to it. Explicitly
specify localhost in wait_for as a workaround.
  • Loading branch information
aboroska committed Sep 17, 2021
1 parent 8b86fb1 commit 32bf25e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- name: Wait for carbon-relay-ng to start up
wait_for:
host: localhost
port: "{{ carbon_relay_ng_port }}"
timeout: "{{ wait_for_startup_timeout }}"
when: wait_for_startup

0 comments on commit 32bf25e

Please sign in to comment.