---
- name: Restart zookeeper
  service: name=zookeeper state=restarted enabled=yes

- name: Reload systemctl daemon
  command: systemctl daemon-reload
  when: ansible_service_mgr == 'systemd'

---
- name: Reload systemctl daemon
  command: systemctl daemon-reload
  when: ansible_service_mgr == 'systemd'

- name: Restart zookeeper
  service: name=zookeeper state=restarted

Make sure daemon-reload is executed first
Make sure daemon-reload is executed first
