install_zookeeper.yml
402 Bytes
- name: create the directory of the node
file:
path: /data/zookeeper
state: directory
recurse: yes
owner: zookeeper
group:
- name: create the file of the id of the node
template:
src: ./templates/myid.j2
dest: /data/zookeeper/myid
owner: zookeeper
group: zookeeper
mode: 0700
- name: install zookeeper
apt:
name: zookeeperd
state: present