From 0cd5c1704ff8df97a36ce7fb3464aa8dbadf47b5 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 26 Jun 2018 11:48:00 +0100 Subject: [PATCH] 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 --- multi-node-aio/playbooks/deploy-vms.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/multi-node-aio/playbooks/deploy-vms.yml b/multi-node-aio/playbooks/deploy-vms.yml index 08e0d6fd..3b9fa291 100644 --- a/multi-node-aio/playbooks/deploy-vms.yml +++ b/multi-node-aio/playbooks/deploy-vms.yml @@ -113,9 +113,6 @@ until: "'' in virsh_caps.stdout" retries: 6 delay: 10 - when: - - hostvars[item]['server_vm'] | default(false) | bool - with_items: "{{ groups['pxe_servers'] }}" - name: Define the VM command: "virsh define /etc/libvirt/qemu/{{ hostvars[item]['server_hostname'] }}.xml"