updated to use community.proxmox collection

This commit is contained in:
2026-02-02 13:52:58 -05:00
parent c8678716bf
commit c12bfa6bad
4 changed files with 9 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ proxmox-template-clone/
```yaml
- community.general >= 8.0.0
- community.proxmox >= 0.1.0
- ansible.posix >= 1.5.0
```

View File

@@ -2,5 +2,7 @@
collections:
- name: community.general
version: ">=8.0.0"
- name: community.proxmox
version: ">=0.1.0"
- name: ansible.posix
version: ">=1.5.0"

View File

@@ -13,7 +13,7 @@
next_vmid: "{{ nextid_response.json.data }}"
- name: Clone LXC from template
community.general.proxmox:
community.proxmox.proxmox:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"
@@ -28,7 +28,7 @@
register: cloned_lxc
- name: Configure LXC resources
community.general.proxmox:
community.proxmox.proxmox:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"
@@ -42,7 +42,7 @@
state: present
- name: Start the LXC container
community.general.proxmox:
community.proxmox.proxmox:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"

View File

@@ -13,7 +13,7 @@
next_vmid: "{{ nextid_response.json.data }}"
- name: Clone VM from template
community.general.proxmox_kvm:
community.proxmox.proxmox_kvm:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"
@@ -28,7 +28,7 @@
register: cloned_vm
- name: Configure VM resources
community.general.proxmox_kvm:
community.proxmox.proxmox_kvm:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"
@@ -42,7 +42,7 @@
update: true
- name: Start the VM
community.general.proxmox_kvm:
community.proxmox.proxmox_kvm:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ proxmox_api_user }}"
api_token_id: "{{ proxmox_api_token_id }}"