Ensure all zkCli has -server set

This commit is contained in:
2023-09-01 15:42:28 -04:00
parent 3c465f4e7f
commit 773fd5a9d4
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
- patroni
- name: remove any existing patroni keys in Zookeeper
command: /usr/share/zookeeper/bin/zkCli.sh rmr /patroni
command: /usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181 rmr /patroni
ignore_errors: true
- name: start Patroni

View File

@ -9,5 +9,5 @@
seconds: 10
- name: ensure Zookeeper is running on node1
shell: echo "ls /" | /usr/share/zookeeper/bin/zkCli.sh
shell: echo "ls /" | /usr/share/zookeeper/bin/zkCli.sh -server $(hostname -s):2181
when: ansible_local.host_id == 1