Files
Kamino/roles/pve_lxc/molecule/default/converge.yml
T
Defame1297 318229bdb3
Build / build (pull_request) Successful in 48s
Lint / lint (pull_request) Failing after 3m17s
Molecule / molecule (pull_request) Failing after 4m2s
feat(pve_lxc): add the pve_lxc role
Add pve_lxc, which manages the lifecycle of a Proxmox VE LXC container
through the Proxmox API (community.proxmox), reconciles the raw lxc.*
lines of its config on the node and, opt-in, writes its guest firewall
file. It keeps the pve_lxc_* interface and carries no legacy-name guard.
The input asserts run from tasks/validate.yml before any change, and the
API token secret has no default.

The molecule scenario runs the validation and the node-side task files
against a container standing in for the node; the API lifecycle is not
exercised. Debian trixie is declared, untested.

Refs #386

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 22:55:25 +00:00

22 lines
684 B
YAML

---
# The validation and the node-side task files only, in main.yml's order: main.yml would also call the
# Proxmox API to detect the container, which the scenario does not exercise (README, Tests).
- name: Converge
hosts: all
gather_facts: false
tasks:
- name: Validate the inputs
ansible.builtin.include_role:
name: mortis.kamino.pve_lxc
tasks_from: validate
- name: Write the guest firewall file
ansible.builtin.include_role:
name: mortis.kamino.pve_lxc
tasks_from: firewall
- name: Reconcile the raw config lines
ansible.builtin.include_role:
name: mortis.kamino.pve_lxc
tasks_from: raw_config