feat: Make LXC CPU cores and memory configurable during creation and refine inventory group insertion regex.

This commit is contained in:
2026-01-04 11:28:13 +01:00
parent 03dedfda68
commit 9e0ba359ec
2 changed files with 11 additions and 3 deletions

View File

@@ -76,6 +76,6 @@
path: /opt/ansible/inventory/hosts.ini
block: |
{{ item }} ansible_host={{ hostvars[item]['ansible_host'] }}
insertafter: "[lxc]"
insertafter: "^\\[lxc\\]"
marker: "# {mark} ANSIBLE MANAGED BLOCK FOR LXC"
loop: "{{ groups['new'] }}" # Loop over all hosts in the 'new' group