Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@
- inventory_hostname == active_server or inventory_hostname == groups[rke2_servers_group_name].0
- do_etcd_restore is defined or do_etcd_restore_from_s3 is defined

- name: Download kubeconfig to ansible localhost
ansible.builtin.include_tasks: download_kubeconfig.yaml
when:
- rke2_download_kubeconf | bool
- inventory_hostname == groups[rke2_servers_group_name].0

- name: Prepare and join remaining nodes of the cluster
ansible.builtin.include_tasks: remaining_nodes.yml
when:
- active_server is defined
- groups[rke2_cluster_group_name] | length | int >= 2

- name: Download kubeconfig to ansible localhost
ansible.builtin.include_tasks: download_kubeconfig.yaml
when:
- rke2_download_kubeconf | bool
- inventory_hostname == groups[rke2_servers_group_name].0

- name: Rolling cordon and drain restart when version changes - servers
ansible.builtin.include_tasks: rolling_restart.yml
with_items: "{{ groups[rke2_servers_group_name] }}"
Expand Down