Skip to content

Commit

Permalink
Merge pull request #173 from paulfantom/kube-vip-fix
Browse files Browse the repository at this point in the history
Copy kube-vip manifests before connecting to first node
  • Loading branch information
MonolithProjects authored Nov 25, 2023
2 parents ad3cbd5 + 1d6da84 commit 7ca7a5a
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 7ca7a5a

Please sign in to comment.