diff --git a/lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py b/lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py index 5fdcc92d2b..149112e67b 100644 --- a/lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py +++ b/lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py @@ -195,6 +195,21 @@ EXAMPLES = ''' disk: bus: virtio +- name: Create virtual machine with datavolume + kubevirt_vm: + name: myvm + namespace: default + memory: 1024Mi + datavolumes: + - name: mydv + source: + http: + url: https://url/disk.qcow2 + pvc: + accessModes: + - ReadWriteOnce + storage: 5Gi + - name: Remove virtual machine 'myvm' kubevirt_vm: state: absent