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 ```yaml
- community.general >= 8.0.0 - community.general >= 8.0.0
- community.proxmox >= 0.1.0
- ansible.posix >= 1.5.0 - ansible.posix >= 1.5.0
``` ```

View File

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

View File

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

View File

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