Skip to content

Commit 7f1a53d

Browse files
fix: run always first_server for single node setup
1 parent a7d789c commit 7f1a53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
ansible.builtin.include_tasks: first_server.yml
5050
when:
5151
- inventory_hostname == groups[rke2_servers_group_name].0
52-
- active_server is not defined
52+
- active_server is not defined or groups[rke2_cluster_group_name] | length | int == 1
5353

5454
- name: Restore etcd specific tasks
5555
ansible.builtin.include_tasks: first_server_restore.yml

0 commit comments

Comments
 (0)