Skip to content

Commit

Permalink
Fixed Zookeeper to restart every time Ansible runs on Debian
Browse files Browse the repository at this point in the history
Ansible were restarting Zookeeper every time Ansible were running.
Fixed service state=started and added restart handlers to restart
only if configuration changes.
  • Loading branch information
ernoaapa committed Jun 2, 2015
1 parent f96b85d commit c30bac3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
- name: Overwrite myid file.
template: src=myid.j2 dest=/etc/zookeeper/conf/myid
tags: deploy
notify:
- Restart zookeeper

- name: Overwrite default config file
template: src=zoo.cfg.j2 dest=/etc/zookeeper/conf/zoo.cfg
tags: deploy
notify:
- Restart zookeeper

- name: Restart zookeeper
service: name=zookeeper state=restarted enabled=yes
- name: Start zookeeper service
service: name=zookeeper state=started enabled=yes
tags: deploy

0 comments on commit c30bac3

Please sign in to comment.