first commit

This commit is contained in:
2021-08-28 23:54:41 +08:00
commit 06f4bf327a
55 changed files with 650 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
---
- name: cat zookeeper id
shell: cat /data/zookeeper/data/myid
register: output
- name: print zookeeper id
debug:
msg: "zookeeper id: {{ output.stdout }}"

View File

@@ -0,0 +1,3 @@
---
- import_tasks: "{{task|lower}}.yml"

View File

@@ -0,0 +1,4 @@
---
- name: restart zookeeper
service: name=zookeeper state=restarted

View File

@@ -0,0 +1,4 @@
---
- name: start zookeeper
service: name=zookeeper state=started

View File

@@ -0,0 +1,4 @@
---
- name: stop zookeeper
service: name=zookeeper state=stopped