updated to use community.proxmox collection
This commit is contained in:
@@ -52,6 +52,7 @@ proxmox-template-clone/
|
||||
|
||||
```yaml
|
||||
- community.general >= 8.0.0
|
||||
- community.proxmox >= 0.1.0
|
||||
- ansible.posix >= 1.5.0
|
||||
```
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user