Run virsh commands directly on vmhost
RHEL8 Ansible changed to use Python 3.8 which does not have libvirt bindings packaged.
This commit is contained in:
parent
c5eafdbd04
commit
436b583572
1 changed files with 1 additions and 2 deletions
|
@ -38,9 +38,8 @@
|
|||
|
||||
- name: get vm list
|
||||
virt:
|
||||
uri: "{{ vmhost_uri }}"
|
||||
command: list_vms
|
||||
delegate_to: localhost
|
||||
delegate_to: "{{ vmhost }}"
|
||||
register: result
|
||||
check_mode: false
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue