Files
pvc-ansible/roles/pvc/tasks/zookeeper/bootstrap.yml
Joshua M. Boniface 04ca8f73d2 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.
2021-01-28 13:32:36 -05:00

14 lines
301 B
YAML

---
- name: restart Zookeeper on all nodes
service:
name: zookeeper
state: restarted
- name: wait 10s for cluster to stabilize
pause:
seconds: 10
- name: ensure Zookeeper is running on node1
shell: echo "ls /" | /usr/share/zookeeper/bin/zkCli.sh
when: ansible_local.host_id == 1