---

- name: Bootstrap
  hosts: all
  gather_facts: false ## required because ansible_host may not have python
  check_mode: false
  become: false
  roles:
    - bootstrap

- name: Assert common dependencies
  hosts: all
  gather_facts: true
  check_mode: false
  become: true
  roles:
    - common

- name: Set up IPFS
  hosts: ipfs
  gather_facts: true
  roles:
    - ipfs

- name: Assert Capture dependencies
  hosts: capture
  gather_facts: true
  check_mode: false
  become: false
  roles:
    - capture

- name: Configure database
  hosts: database
  gather_facts: true
  check_mode: false
  become: false
  roles:
    - database

- name: Configure tracker
  hosts: tracker
  gather_facts: true
  check_mode: false
  become: false
  roles:
    - tracker

- name: Configure Bright
  hosts: bright
  gather_facts: true
  check_mode: false
  become: false
  roles:
    - bright

- name: Configure load balancer
  hosts: load_balancer
  gather_facts: true
  check_mode: false
  become: false
  roles:
    - load_balancer