chore: migrate proxmox module from community.general.proxmox to community.proxmox

This commit is contained in:
2026-04-14 17:40:03 -04:00
parent 479996612e
commit 3a2b4b8775
11 changed files with 13 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Create a full clone of the container
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid | default(0) }}"
clone: "{{ lxc_clone_from }}"
clone_type: "{{ lxc_clone_type }}"

View File

@@ -2,6 +2,6 @@
- ansible.builtin.include_tasks: stop.yml
- name: Convert container to template
community.general.proxmox:
community.proxmox.proxmox:
hostname: "{{ lxc_hostname }}"
state: template

View File

@@ -1,6 +1,6 @@
---
- name: Create an LXC container
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid | default(omit) }}"
hostname: "{{ lxc_hostname }}"
password: "{{ lxc_password }}"

View File

@@ -2,7 +2,7 @@
- ansible.builtin.include_tasks: stop.yml
- name: Delete a container
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid | default(omit) }}"
hostname: "{{ lxc_hostname | default(omit) }}"
state: absent

View File

@@ -1,7 +1,7 @@
---
- name: Proxmox LXC provision
module_defaults:
community.general.proxmox: &proxmox_defaults
community.proxmox.proxmox: &proxmox_defaults
api_host: "{{ proxmox_api_host }}"
api_port: "{{ proxmox_api_port }}"
api_user: "{{ proxmox_api_user }}"
@@ -12,7 +12,7 @@
community.proxmox.proxmox_lxc_info: *proxmox_defaults
block:
- name: Check if container exists
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid }}"
state: current
register: existing_container

View File

@@ -1,6 +1,6 @@
---
- name: Start the LXC container
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_result.vmid }}"
state: started
register: start_result

View File

@@ -1,6 +1,6 @@
---
- name: Stop container if it is running
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid | default(omit) }}"
hostname: "{{ lxc_hostname | default(omit) }}"
state: stopped

View File

@@ -1,6 +1,6 @@
---
- name: Update an LXC container
community.general.proxmox:
community.proxmox.proxmox:
vmid: "{{ lxc_vmid }}"
hostname: "{{ lxc_hostname }}"
password: "{{ lxc_password | default(omit) }}"