summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-vm-nodes/tasks/main.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-08-29 10:43:50 +0100
committerMarkos Chandras <mchandras@suse.de>2018-08-30 07:38:45 +0100
commitd52d5b21a8309537fc30767f4a209f067fc509bb (patch)
treeb3be158a83f1e577a5a72ca2788d53d64e5bd5bc /xci/playbooks/roles/create-vm-nodes/tasks/main.yml
parent0b2e5383eb16bfaf8846d1c584ce16f702c25acc (diff)
xci: roles: create-vm-nodes: Always provision VM nodes
The role used to get the output of 'virsh list --all' to determine how many VMs are present and shut off in the system. This takes *all* VMs on the system into consideration so it may skip creation of some or all of the XCI VMs if we happen to have other VMs present. We can improve the situation by simply dropping this check and always provision the VMs we want. If the VM is already present, then the module will simply do a sanity check of its configuration. This allows XCI to run alongside other VMs. Change-Id: I54255a1959509671c0305f48f23a55b6e900684f Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/roles/create-vm-nodes/tasks/main.yml')
-rw-r--r--xci/playbooks/roles/create-vm-nodes/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/playbooks/roles/create-vm-nodes/tasks/main.yml b/xci/playbooks/roles/create-vm-nodes/tasks/main.yml
index 7e0090e4..c1cee6dc 100644
--- a/xci/playbooks/roles/create-vm-nodes/tasks/main.yml
+++ b/xci/playbooks/roles/create-vm-nodes/tasks/main.yml
@@ -18,7 +18,7 @@
# First we create the opnfv_vm
- include_tasks: create_vm.yml
- with_items: "{{ [opnfv_vm] + nodes }}"
+ with_indexed_items: "{{ [opnfv_vm] + nodes }}"
- name: Start the opnfv vm
virt: