You've already forked deploy-vm
big fat commit with everything working !
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: deploy-vm | start VM '{{ vm_name }}'
|
||||
community.general.proxmox_kvm:
|
||||
api_host: "{{ proxmox_host }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_password: "{{ proxmox_api_password }}"
|
||||
node: "{{ resolved_node }}"
|
||||
vmid: "{{ resolved_vm_id }}"
|
||||
state: started
|
||||
timeout: "{{ vm_wait_timeout }}"
|
||||
|
||||
- name: deploy-vm | deployment summary
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
- "VM '{{ vm_name }}' déployée avec succès"
|
||||
- "VMID : {{ resolved_vm_id }}"
|
||||
- "IP : {{ vm_ip }}"
|
||||
- "Node : {{ resolved_node }}"
|
||||
- "Cœurs : {{ vm_cores }} | RAM : {{ vm_memory }} Mo"
|
||||
Reference in New Issue
Block a user