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

@@ -78,11 +78,11 @@
ProxyJump {{ vm.node }}
StrictHostKeyChecking no
- name: Add VM to homelab_vms group in production.ini
ansible.builtin.lineinfile:
path: "{{ inventory_file }}"
line: "{{ vm.name }}"
insertafter: '^\[vms\]'
create: true
state: present
delegate_to: localhost
# - name: Add VM to homelab_vms group in production.ini
# ansible.builtin.lineinfile:
# path: "{{ inventory_file }}"
# line: "{{ vm.name }}"
# insertafter: '^\[vms\]'
# create: true
# state: present
# delegate_to: localhost