Skip to content

Commit

Permalink
tasks: copy kube-vip manifests before connecting to first node
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Nov 22, 2023
1 parent 000fc21 commit 1d6da84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
when:
- rke2_ha_mode | bool

- name: Prepare very first server node in the cluster
ansible.builtin.include_tasks: first_server.yml
when:
- inventory_hostname == groups[rke2_servers_group_name].0
- active_server is not defined

- name: Copy kube-vip manifests to the masternode
ansible.builtin.include_tasks: kubevip.yml
when:
Expand All @@ -35,6 +29,12 @@
- rke2_ha_mode_kubevip | bool
- not rke2_ha_mode_keepalived | bool

- name: Prepare very first server node in the cluster
ansible.builtin.include_tasks: first_server.yml
when:
- inventory_hostname == groups[rke2_servers_group_name].0
- active_server is not defined

- name: Prepare and join remaining nodes of the cluster
ansible.builtin.include_tasks: remaining_nodes.yml
when:
Expand Down

0 comments on commit 1d6da84

Please sign in to comment.