Skip to content

Commit

Permalink
add wait for Cassandra CQL port to become available
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Oct 8, 2020
1 parent a6ca6c6 commit 4000b93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@
name: '{{ cassandra_service_name }}.service'
state: restarted
enabled: true

- name: Wait for CQL port to open
wait_for:
port: '{{ cassandra_native_port }}'
host: '{{ cassandra_listen_address }}'
connect_timeout: 3
delay: 3
timeout: 60

0 comments on commit 4000b93

Please sign in to comment.