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
|
- name: get vm list
|
||||||
virt:
|
virt:
|
||||||
uri: "{{ vmhost_uri }}"
|
|
||||||
command: list_vms
|
command: list_vms
|
||||||
delegate_to: localhost
|
delegate_to: "{{ vmhost }}"
|
||||||
register: result
|
register: result
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue