---

- hosts: all
  roles:
    - ntp
    - docker-engine

- hosts: ucp-primary
  roles:
    - docker-ucp-primary

- hosts: ucp-replica
  serial: 1 # need to join one by one only
  roles:
    - docker-ucp-replica

- hosts: ucp-worker
  serial: 1 # need to join one by one only
  roles:
    - docker-ucp-worker

---

- hosts: all
  roles:
    - ntp
    - docker-engine

- hosts: ucp-primary
  roles:
    - docker-ucp-primary

- hosts: ucp-replica
  serial: 1 # need to join one by one only
  roles:
    - docker-ucp-replica

- hosts: ucp-worker
  roles:
    - docker-ucp-worker

Allow workers to join in parallel
Allow workers to join in parallel
