---
- import_tasks: check.yml

- import_tasks: pre.yml

- include_tasks: upgrade.yml
  when:
    - calico_upgrade_enabled
    - calico_upgrade_needed
    - inventory_hostname in groups['kube-master']
  run_once: yes

- include_tasks: install.yml
