Correct bugs during bootstrap

1. Ensure Zookeeper restarts and checks out successfully before
proceeding with other steps.
2. Make sure PVC itself doesn't start prematurely.
This commit is contained in:
2023-09-01 15:42:25 -04:00
parent 05a2c1949d
commit 4f5dbee8ee
4 changed files with 21 additions and 0 deletions

View File

@ -18,6 +18,10 @@
- name: initialize a fresh PVC cluster
command: pvc -c local task init -y
- name: wait 5s for cluster to stabilize
pause:
seconds: 5
- name: stop the API daemon
service:
name: pvcapid.service

View File

@ -53,6 +53,7 @@
- name: enable daemon services but don't start them
service:
name: "{{ item }}"
state: stopped
enabled: yes
with_items:
- pvc-flush.service