---
- include: register.yml
  when: inventory_hostname in groups['monasca-api'] or
        inventory_hostname in groups['monasca-log-api']

- include: config.yml
  when: inventory_hostname in groups['monasca-api'] or
        inventory_hostname in groups['monasca-log-api'] or
        inventory_hostname in groups['monasca-log-transformer'] or
        inventory_hostname in groups['monasca-log-persister']

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

- name: Flush handlers
  meta: flush_handlers

- include: check.yml
  when: inventory_hostname in groups['monasca-api'] or
        inventory_hostname in groups['monasca-log-api'] or
        inventory_hostname in groups['monasca-log-transformer'] or
        inventory_hostname in groups['monasca-log-persister']
