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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user