diff options
Diffstat (limited to 'xci/playbooks/roles/create-nodes/tasks/main.yml')
-rw-r--r-- | xci/playbooks/roles/create-nodes/tasks/main.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xci/playbooks/roles/create-nodes/tasks/main.yml b/xci/playbooks/roles/create-nodes/tasks/main.yml index 0e51b411..607ac494 100644 --- a/xci/playbooks/roles/create-nodes/tasks/main.yml +++ b/xci/playbooks/roles/create-nodes/tasks/main.yml @@ -8,6 +8,8 @@ - name: "Install required packages" package: name: "{{ required_packages }}" + update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}" + state: present - include_tasks: prepare_libvirt.yml with_items: "{{ libvirt_networks }}" @@ -22,7 +24,7 @@ - include_tasks: create_vm.yml with_indexed_items: "{{ vms_to_create }}" -- include_tasks: barematalhoststojson.yml +- include_tasks: baremetalhoststojson.yml with_items: "{{ baremetal_nodes }}" - name: Start the opnfv vm |