Skip to content

Commit

Permalink
add immediate Consul reload to fix service discovery
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 7, 2020
1 parent fbffcc8 commit cff55c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/consul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
name: Cassandra Healthcheck
type: script
script: '/bin/systemctl is-active {{ cassandra_service_name }}'

# Necessary for discovery step to work
- name: Reload Consul service
command: 'consul reload'

0 comments on commit cff55c8

Please sign in to comment.