2023-09-01 15:42:19 -04:00
|
|
|
---
|
|
|
|
- name: install zookeeper packages
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- zookeeperd
|
|
|
|
- zookeeper-bin
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
- name: install zookeeper configuration
|
|
|
|
template:
|
|
|
|
src: zookeeper/{{ item }}.j2
|
|
|
|
dest: /etc/zookeeper/conf/{{ item }}
|
|
|
|
with_items:
|
|
|
|
- configuration.xsl
|
|
|
|
- environment
|
|
|
|
- log4j.properties
|
|
|
|
- myid
|
|
|
|
- zoo.cfg
|
|
|
|
notify: restart zookeeper
|
|
|
|
|
2023-09-01 15:42:20 -04:00
|
|
|
- name: start but disable services
|
2023-09-01 15:42:19 -04:00
|
|
|
service:
|
|
|
|
name: "{{ item }}"
|
2023-09-01 15:42:20 -04:00
|
|
|
state: started
|
2023-09-01 15:42:20 -04:00
|
|
|
enabled: no
|
2023-09-01 15:42:19 -04:00
|
|
|
with_items:
|
|
|
|
- zookeeper
|
2023-09-01 15:42:19 -04:00
|
|
|
|
|
|
|
- meta: flush_handlers
|