mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-26 01:14:35 +00:00
This adds the kubevirt_vm_info module, which returns the same results as the kubevirt_vm module, but is limited to read-only functionality. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
12 lines
316 B
YAML
12 lines
316 B
YAML
- name: Playbook describing a virtual machine
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Describe VM
|
|
kubevirt.core.kubevirt_vm_info:
|
|
name: testvm
|
|
namespace: default
|
|
register: result
|
|
- name: Print return information from the previous task
|
|
ansible.builtin.debug:
|
|
var: result
|