Idempotency, proxmoxer module in localhost, proxmox tags
-------- Mensaje reenviado --------
Asunto: Proposition of some improvements for cielito.proxmox.create_lxc
Fecha: Thu, 27 Feb 2025 11:59:25 +0000
De: Comelty comelty@protonmail.com
Para: daniel.vinar-ulriksen@polytechnique.org daniel.vinar-ulriksen@polytechnique.org
Hello,
I started to use the cielito.proxmox.create_lxc Ansible role which I found very useful. However, I had several issues but because I cannot create an account on the GitLab instance I write you this email.
-
LXC already running error - expected behavior: task skipping when a container is already running
-
Add
connection: local
on community.general.proxmox tasks, to run HTTP requests from the Ansible controller instead of from LXC containers. From what I understood, it may be fixed by !15 by the addition of thepve_proxmoxer_controller variable
. To make my playbook working, I added the connection statement on those lines:- roles/create_lxc/tasks/main.yml:22
- roles/create_lxc/tasks/main.yml:152
- roles/create_lxc/tasks/template.yml:20
-
Missing the ability to add Proxmox tags, through the community.general.proxmox tags key.
If you wish, I can provide you a git patch file to implement those points so that they could be quickly be integrated
Best regards, Comelty