-
Copy example inventories to your favor name
cp -r inventories/example inventories/<inventory-name>
-
Change the inventory config in
ansible.cfg
[defaults] inventory=inventories/<inventory-name>
-
Update
inventories/<inventory-name>/all.var
-
Change proxmox identity
proxmox_user
: the user who create the API key. e.g.root@pam
proxmox_token
: the token name. (!IMPORTANT: should not include theproxmox_user
)proxmox_token_secret
: the token secretproxmox_host
: the proxmox api endpoint
-
Update VM List
vmid
: the VM IDname
: name of the VMproxmox_node
: the proxmox node where the VM will be createdclone_vmid
: the template VM IDstorage
: the storage unique name where the VM will be storedcpus
: the number of CPU coresmemory
: the memory size of the VMdisk_size
: the disk size of the VMsshkeys
: the ssh public key to be injected to the VM (multiple keys should be separated by newline)net
: the network configuration of the VMip
: the IP address of the VM including CIDR (e.g.10.216.100.60/24
)gw
: the gateway of the VM (e.g.10.216.0.1
)
-
-
Notifications
You must be signed in to change notification settings - Fork 0
yccodr/ansible-proxmox-bulk-vm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published