2016-12-09 00:48:54 +08:00
|
|
|
---
|
2019-08-08 22:37:22 +08:00
|
|
|
- name: Calico-rr | Pre-upgrade tasks
|
|
|
|
include_tasks: pre.yml
|
2016-12-09 00:48:54 +08:00
|
|
|
|
2020-09-24 18:24:05 +08:00
|
|
|
- name: Calico-rr | Configuring node tasks
|
|
|
|
include_tasks: update-node.yml
|
2016-12-09 00:48:54 +08:00
|
|
|
|
2020-07-27 21:24:17 +08:00
|
|
|
- name: Calico-rr | Set label for route reflector # noqa 301
|
2019-08-08 22:37:22 +08:00
|
|
|
command: >-
|
|
|
|
{{ bin_dir }}/calicoctl.sh label node {{ inventory_hostname }}
|
|
|
|
'i-am-a-route-reflector=true' --overwrite
|
2021-05-28 03:02:23 +08:00
|
|
|
changed_when: false
|
|
|
|
register: calico_rr_label
|
|
|
|
until: calico_rr_label is succeeded
|
|
|
|
delay: "{{ retry_stagger | random + 3 }}"
|
|
|
|
retries: 10
|