Skip to content

Commit

Permalink
Merge pull request #11 from ernoaapa/fix_debian_service_restart
Browse files Browse the repository at this point in the history
Fixed Zookeeper to restart every time Ansible runs on Debian
  • Loading branch information
JasonGiedymin committed Jun 2, 2015
2 parents f96b85d + c30bac3 commit 6c18f07
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 6c18f07

Please sign in to comment.