Commit Graph
3 Commits
Author SHA1 Message Date
patrick 77723f8ef7 fix(proxmox_lxc_provision): wait for container config file before editing it
The proxmox create task can return before pmxcfs has flushed the .conf, so the
first delegated lineinfile hit 'Destination /etc/pve/lxc/<vmid>.conf does not
exist'. Poll for the file with wait_for (up to 30s) before applying idmaps/GPU
config, which continues as soon as it appears rather than eating a fixed sleep.
2026-07-27 19:06:22 -04:00
patrick aae89f5f5e fix(proxmox_lxc_provision): apply idmaps/GPU config via lineinfile, wire into flow
edit-config.yml was never included by the role, so lxc_id_mappings and GPU
passthrough were silently ignored. It also used blockinfile, whose comment
markers are incompatible with Proxmox hoisting all comments to the top of the
.conf on every write -- which orphans the markers and empties the managed block.

Rewrite edit-config.yml to manage raw lxc.* lines with lineinfile (keyed on each
exact line, churn-free, immune to comment hoisting), delegated to the Proxmox
host. Include it from main.yml after clone/create but before start.yml, while the
container is stopped, since ID mappings can't change on a running container.
2026-07-27 17:58:15 -04:00
patrick 62f4a3ea73 fix: rename roles to use underscores instead of hyphens which was causing the roles not to be found 2026-04-14 15:19:21 -04:00