---
- include: register.yml
  when: inventory_hostname in groups['watcher-api']

- include: config.yml
  when: inventory_hostname in groups['watcher-api'] or
        inventory_hostname in groups['watcher-engine'] or
        inventory_hostname in groups['watcher-applier']

- include: clone.yml
  when: watcher_dev_mode | bool

- include: bootstrap.yml
  when: inventory_hostname in groups['watcher-api']

- name: Flush handlers
  meta: flush_handlers
