mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Fix issue around using ip addresses in inventory, download and remove agent service properly
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
- name: Init first server node
|
||||
when: ansible_hostname == groups['server'][0]
|
||||
# Handle both hostname OR ip address being supplied in inventory
|
||||
when: ansible_hostname == groups['server'][0] or groups['server'][0] in ansible_facts['all_ipv4_addresses']
|
||||
block:
|
||||
- name: Copy K3s service file [Single]
|
||||
when: groups['server'] | length == 1
|
||||
|
||||
Reference in New Issue
Block a user