REFACTOR: splits deploy_vm_on_proxmox into three files with distinct purposes

This commit is contained in:
2026-08-14 19:46:47 +04:00
parent 13b49877a0
commit 48bbd06cf8
3 changed files with 99 additions and 82 deletions
@@ -0,0 +1,22 @@
---
- name: Make sure the VM has started
become: false
community.proxmox.proxmox_kvm:
validate_certs: false
node: proxmox-server
api_user: root@pam
api_host: 192.168.0.2
api_token_id: ansible
api_token_secret: "{{ proxmox_token_secret }}"
name: "{{ vm_hostname }}"
state: started
- name: Sleep for 120 seconds to ensure that Proxmox has cloned the VM
become: false
ansible.builtin.wait_for:
timeout: 120
delegate_to: localhost
changed_when: false