Skip to content

Commit

Permalink
Add retries for vault init
Browse files Browse the repository at this point in the history
Sometime it took longer for vault to fully come up and init will fail
  • Loading branch information
TheRealHaoLiu committed Dec 5, 2023
1 parent 03dbc66 commit 6285e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/docker-compose/ansible/roles/vault/tasks/initialize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
- vault_initialization.stderr.find("Vault is already initialized") == -1
changed_when:
- vault_initialization.rc == 0
retries: 5
delay: 5

- name: Write out initialization file
copy:
Expand Down

0 comments on commit 6285e2e

Please sign in to comment.