Advertisement
Guest User

Untitled

a guest
Feb 15th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ---
  2. - name: Create a Proxmox VM
  3. hosts: proxmox
  4. gather_facts: no
  5. tasks:
  6. - name: Create VM
  7. community.general.proxmox_kvm:
  8. description: "my vm"
  9. api_host: "{{ proxmox_api_host }}"
  10. api_user: "{{ proxmox_api_user }}"
  11. api_password: "{{ proxmox_api_password }}"
  12. node: "{{ proxmox_node }}"
  13. name: "test-vm"
  14. memory: 12288
  15. cores: 3
  16. ide:
  17. device: "ide2"
  18. media: "cdrom"
  19. file: "/home/spiderunderurbed/Downloads/nixos-minimal-24.11.714101.030ba1976b7c-x86_64-linux.iso"
  20. scsi:
  21. storage: "local-lvm"
  22. size: "100G"
  23. type: "scsi"
  24. bootdisk: "scsi0"
  25. state: "present"
  26.  
  27. - name: Start VM
  28. community.general.proxmox_kvm:
  29. api_host: "{{ proxmox_api_host }}"
  30. api_user: "{{ proxmox_api_user }}"
  31. api_password: "{{ proxmox_api_password }}"
  32. node: "{{ proxmox_node }}"
  33. vmid: 101
  34. state: "started"
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement