fix: change proxmox info module to proxmox_vm_info from proxmox_lxc_info

This commit is contained in:
2026-04-14 17:52:24 -04:00
parent 3a2b4b8775
commit 6e6bed6a40
2 changed files with 4 additions and 3 deletions

View File

@@ -1,13 +1,14 @@
---
- name: Query Proxmox for existing LXCs
community.proxmox.proxmox_lxc_info: {}
community.proxmox.proxmox_vm_info:
type: lxc
register: proxmox_lxcs
- name: Check if LXC with hostname already exists
ansible.builtin.set_fact:
lxc_exists: >-
{{
proxmox_lxcs.proxmox_lxcs
proxmox_lxcs.proxmox_vms
| selectattr('name', 'equalto', lxc_hostname)
| list
| length > 0