Merge "Allow VMs to access internet"
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 8 Mar 2018 09:54:35 +0000 (09:54 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 8 Mar 2018 09:54:35 +0000 (09:54 +0000)
1  2 
ansible/roles/infra_create_vms/tasks/configure_vm.yml

  
  - name: Populate network-config and add interface to xml file
    include_tasks: create_interfaces.yml
-   extra_vars: "{{ network_config, xml_file , slot_address, mac_address_counter }}"
+   extra_vars: "{{ network_config xml_file slot_address mac_address_counter }}"
    loop_control:
      loop_var: interface_item
    with_items: "{{ node_item.interfaces }}"
    shell: >
      qemu-img convert -O qcow2 {{ node_item.image }} {{ image_dir+node_item.hostname+'.qcow2' }}
  
- - name: Copy and convert the ubuntu image
+ - name: Resize image
    shell: >
 -    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}MB
 +    qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}M
  
  - name: Define the VMs
    virt: