---
- name: Calico-rr | Pre-upgrade tasks
  include_tasks: pre.yml

- name: Calico-rr | Configuring node tasks
  include_tasks: update-node.yml

- name: Calico-rr | Set label for route reflector  # noqa 301
  command: >-
    {{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
    'i-am-a-route-reflector=true' --overwrite
  changed_when: false
  register: calico_rr_label
  until: calico_rr_label is succeeded
  delay: "{{ retry_stagger | random + 3 }}"
  retries: 10