deploy-vm | Libvirt wrapper to spawn VMs using cloud images | Infrastructure Automation library
kandi X-RAY | deploy-vm Summary
kandi X-RAY | deploy-vm Summary
Libvirt wrapper to spawn VMs using cloud images
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of deploy-vm
deploy-vm Key Features
deploy-vm Examples and Code Snippets
Community Discussions
Trending Discussions on deploy-vm
QUESTION
I have playbook for deploying multiple VM's with multiple disk it's working fine.. But when I deploying multiple VM's with different number of disk each VM's need's in this situation I tried condition's in playbook but it's not working as I expected..
for example below is requirements
APP : 2 disk
DB: 3 disk
I'm passing through disk variables from my inventory files..
look like below
APP guest_disk1='100' guest_disk2='200'
DB guest_disk1='100' guest_disk2='200' guest_disk3='300'
I modified my playbook with when condition like these
...ANSWER
Answered 2021-Mar-25 at 18:23Your example is not a valid yaml/task/playbook sample. Moreover, your data structure is far from ideal to deal with this. Don't create independent vars, use lists. If you want to DRY and limit verbosity, you can apply override values to all disks if you always have the same options
All-in-one example inventory:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install deploy-vm
For the Windows VM support install bsdtar (this tool allows to extract zip archive from stdin):.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page