2019-06-09 00:11:06 -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
|
|
|
|
|
2019-06-17 12:08:47 -04:00
|
|
|
- name: start and enable services
|
2019-06-09 00:11:06 -04:00
|
|
|
service:
|
|
|
|
name: "{{ item }}"
|
2019-06-16 13:57:12 -04:00
|
|
|
state: started
|
2019-06-17 12:08:47 -04:00
|
|
|
enabled: yes
|
2019-06-09 00:11:06 -04:00
|
|
|
with_items:
|
|
|
|
- zookeeper
|
2019-06-12 21:06:06 -04:00
|
|
|
|
|
|
|
- meta: flush_handlers
|