This commit is contained in:
@@ -20,14 +20,14 @@
|
|||||||
method: GET
|
method: GET
|
||||||
user: "{{ pve_user }}"
|
user: "{{ pve_user }}"
|
||||||
password: "{{ pve_password }}"
|
password: "{{ pve_password }}"
|
||||||
force_basic_auth: true
|
force_basic_auth: false
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
register: nextid_response
|
register: nextid_response
|
||||||
when: vm_id is not defined
|
when: vm_id is not defined
|
||||||
|
|
||||||
- name: Set VM ID variable
|
- name: Set VM ID variable
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
allocated_id: "{{ vm_id if vm_id is defined else nextid_response.data }}"
|
allocated_id: "{{ vm_id if vm_id is defined else nextid_response.json.data }}"
|
||||||
|
|
||||||
# === Вариант 1: Создание VM (Qemu) ===
|
# === Вариант 1: Создание VM (Qemu) ===
|
||||||
# - name: Create Proxmox KVM (VM)
|
# - name: Create Proxmox KVM (VM)
|
||||||
|
|||||||
Reference in New Issue
Block a user