MNAIO: Check capabilities only once
The capabilities check is done on the host, so it only needs to be executed once, not once for every VM on the host. This patch eliminates the duplicated checking. Change-Id: I2bc7ebbe699e5ace82c1bcbdfd8e917661054fef
This commit is contained in:
parent
250d9b29b3
commit
0cd5c1704f
@ -113,9 +113,6 @@
|
|||||||
until: "'<guest>' in virsh_caps.stdout"
|
until: "'<guest>' in virsh_caps.stdout"
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 10
|
delay: 10
|
||||||
when:
|
|
||||||
- hostvars[item]['server_vm'] | default(false) | bool
|
|
||||||
with_items: "{{ groups['pxe_servers'] }}"
|
|
||||||
|
|
||||||
- name: Define the VM
|
- name: Define the VM
|
||||||
command: "virsh define /etc/libvirt/qemu/{{ hostvars[item]['server_hostname'] }}.xml"
|
command: "virsh define /etc/libvirt/qemu/{{ hostvars[item]['server_hostname'] }}.xml"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user