---

- name: check zeek
  command: "{{ broids_broctl }} check"

- name: deploy zeek
  block:
    - name: deploy
      command: "{{ broids_broctl }} deploy"
  rescue:
    - name: diag
      command: "{{ broids_broctl }} diag"

- name: restart zeek
  command: "{{ broids_broctl }} restart"

- name: restart monit
  service: name=monit state=restarted

- name: fetch critical-stack-intel feeds
  command: critical-stack-intel pull

- name: Restart apparmor
  service: name=apparmor state=restarted
  when: travisci is defined and travisci

---

- name: check zeek
  command: "{{ broids_broctl }} check"

- name: deploy zeek
  command: "{{ broids_broctl }} deploy"

- name: restart zeek
  command: "{{ broids_broctl }} restart"

- name: restart monit
  service: name=monit state=restarted

- name: fetch critical-stack-intel feeds
  command: critical-stack-intel pull

- name: Restart apparmor
  service: name=apparmor state=restarted
  when: travisci is defined and travisci

Revert "handlers: zeek diag if deploy fails"
Revert "handlers: zeek diag if deploy fails"

This reverts commit 586d59ab31ee225feff5ba47c6e972ae4147e322.
