![]() ![]() ![]() # Examples don't contain auth parameter for simplicity, # look at ovirt_auth module to see how to reuse authentication: # Create and attach new disk to VM - _disk : name : myvm_disk vm_name : rhel7 size : 10GiB format : cow interface : virtio storage_domain : data # Attach logical unit to VM rhel7 - _disk : vm_name : rhel7 logical_unit : target : -01:omachace id : 1IET_000d0001 address : 10.34.63.204 interface : virtio # Detach disk from VM - _disk : state : detached name : myvm_disk vm_name : rhel7 size : 10GiB format : cow interface : virtio # Change Disk Name - _disk : id : 00000000-0000-0000-0000-000000000000 storage_domain : data name : "new_disk_name" vm_name : rhel7 # Upload local image to disk and attach it to vm: # Since Ansible 2.3 - _disk : name : mydisk vm_name : myvm interface : virtio size : 10GiB format : cow image_path : /path/to/mydisk.qcow2 storage_domain : data # Download disk to local file system: # Since Ansible 2.3 - _disk : id : 7de90f31-222c-436c-a1ca-7e655bd5b60c download_image_path : /home/user/mydisk.qcow2 # Export disk as image to Glance domain # Since Ansible 2.4 - _disk : id : 7de90f31-222c-436c-a1ca-7e655bd5b60c image_provider : myglance state : exported # Defining a specific quota while creating a disk image: # Since Ansible 2.5 - _quotas_info : data_center : Default name : myquota register : quota - _disk : name : mydisk size : 10GiB storage_domain : data description : somedescriptionhere quota_id : " " # Upload an ISO image # Since Ansible 2.8 - _disk : name : myiso upload_image_path : /path/to/iso/image storage_domain : data size : 4 GiB wait : true bootable : true format : raw content_type : iso # Add fiber chanel disk - name : Create disk ovirt.ovirt. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Collections in the Openvswitch Namespace.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace.Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace. ![]() Collections in the Containers Namespace.Collections in the Cloudscale_ch Namespace.Collections in the Chocolatey Namespace.Collections in the Check_point Namespace.Virtualization and Containerization Guides. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |