refactor(k3s): streamline inventory and primary server IP handling

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-07-13 00:40:48 +02:00
parent dac0d88d60
commit f1b0cfad2c
21 changed files with 185 additions and 170 deletions

View File

@@ -1,7 +1,7 @@
---
- name: Set up Servers
hosts: k3s_server
gather_facts: yes
hosts: k3s
gather_facts: true
roles:
- role: common
tags:
@@ -9,6 +9,7 @@
- role: k3s_server
tags:
- k3s_server
when: inventory_hostname in groups["k3s_server"]
- role: node_exporter
tags:
- node_exporter