Skip to content

Commit

Permalink
fixed assuming default route
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Feb 19, 2025
1 parent bfe9caf commit 28b4205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/k3s/tasks/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- name: Initialise and authenticate k3s server and agents
vars:
k3s_server_name: "{{ hostvars[groups['k3s_server'].0].ansible_host }}"
access_ip: "{{ ansible_default_ipv4.address }}"
access_ip: "{{ ansible_host }}"
services_states: > # getting list of all unique agent service states
groups['k3s_agent']
| map('extract', hostvars, ['services', 'k3s-agent.service', 'state'])
Expand Down

0 comments on commit 28b4205

Please sign in to comment.