---
- hosts: postgres_servers
  collections:
    - jfrog.platform
  roles:
    - role: postgres
      when: postgres_enabled | bool

- hosts: artifactory_servers
  collections:
    - jfrog.platform
  serial:
    - 1
    - 100%
  roles:
    - role: artifactory
      when: artifactory_enabled | bool

- hosts: xray_servers
  collections:
    - jfrog.platform
  roles:
    - role: xray
      when: xray_enabled | bool

- hosts: distribution_servers
  collections:
    - jfrog.platform
  roles:
    - role: distribution
      when: distribution_enabled | bool

- hosts: insight_servers
  collections:
    - jfrog.platform
  roles:
    - role: insight
      when: insight_enabled | bool
