Skip to content

Commit

Permalink
Update always.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 authored Feb 8, 2024
1 parent 2385640 commit 4d310c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/setup/always.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
rke2_server_ip: "{{ hostvars[ansible_play_hosts | sort | first].ansible_default_ipv4.address }}"
when:
- ansible_play_hosts | map('extract', hostvars, 'rke2_server_ip') | select('defined') | list | length == 0
- ansible_play_hosts | sort | first == inventory_hostname
- ansible_play_hosts | sort | first != inventory_hostname
- rke2_auto_cluster # Only run when we should automatically cluster the servers

- name: First server
Expand All @@ -31,7 +31,6 @@
register: _rke2_server_config
when: _rke2_server_config_exists.stat.exists


- name: "Parse current RKE2 server token from config"
ansible.builtin.set_fact:
rke2_server_token: "{{ _rke2_server_config_yaml.token }}"
Expand Down

0 comments on commit 4d310c7

Please sign in to comment.