Skip to content

Commit

Permalink
Add retry for pgbouncer restart handler (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianHardt authored Apr 24, 2024
1 parent c121826 commit e66f2bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/pgbouncer/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
loop_control:
index_var: idx
label: "{{ 'pgbouncer' if idx == 0 else 'pgbouncer-%d' % (idx + 1) }}"
register: pgbouncer_restart_result
retries: 3
delay: 5
until: pgbouncer_restart_result is success
listen: "restart pgbouncer"

- name: Wait for port "{{ pgbouncer_listen_port }}" to become open on the host
Expand Down

0 comments on commit e66f2bb

Please sign in to comment.