- name: reload systemd
  command: systemctl daemon-reload

- name: restart koschei-polling
  action: service name=koschei-polling state=restarted

- name: restart koschei-build-resolver
  action: service name=koschei-build-resolver state=restarted

- name: restart koschei-repo-resolver
  action: service name=koschei-repo-resolver state=restarted

- name: restart koschei-scheduler
  action: service name=koschei-scheduler state=restarted

- name: restart koschei-watcher
  action: service name=koschei-watcher state=restarted

- name: restart koschei backend services
  service: name={{ item }} state=restarted
  with_items: "{{ koschei_backend_services }}"
