summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-nodes/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'xci/playbooks/roles/create-nodes/tasks/main.yml')
-rw-r--r--xci/playbooks/roles/create-nodes/tasks/main.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/xci/playbooks/roles/create-nodes/tasks/main.yml b/xci/playbooks/roles/create-nodes/tasks/main.yml
index 18bc9871..0e51b411 100644
--- a/xci/playbooks/roles/create-nodes/tasks/main.yml
+++ b/xci/playbooks/roles/create-nodes/tasks/main.yml
@@ -20,10 +20,13 @@
# First we create the opnfv_vm
- include_tasks: create_vm.yml
- with_indexed_items: "{{ [opnfv_vm_pdf] + nodes }}"
+ with_indexed_items: "{{ vms_to_create }}"
+
+- include_tasks: barematalhoststojson.yml
+ with_items: "{{ baremetal_nodes }}"
- name: Start the opnfv vm
- virt:
+ virt:
command: start
name: opnfv
@@ -38,8 +41,6 @@
dest: "{{ baremetal_json_file }}"
content: "{{ nodes_json_data | to_nice_json }}"
-- debug: var=nodes_json_data
-
- name: >
"Set file permissions such that the baremetal data file
can be read by the user executing Ansible"