--- /dev/null
+---\r
+clone_dest: /opt/tempT\r
+release: xenial\r
+target_os: Ubuntu\r
+ubuntu_image_file: /tmp/workspace/yardstick/yardstick-trusty-server.raw\r
 
       when: fdio
 
     - os_image:
-        name: "{{ ubuntu_image }}"
+        name: "{{ ubuntu_image_file | basename }}"
         is_public: yes
         disk_format: qcow2
         container_format: bare
 
 {% if YARD_IMG_ARCH == "arm64" %}
-deb [arch={{ YARD_IMG_ARCH }}] http://ports.ubuntu.com/ {{ ubuntu_release[target_os_version] }}-backports main restricted universe multiverse
+deb [arch={{ YARD_IMG_ARCH }}] http://ports.ubuntu.com/ {{ release }}-backports main restricted universe multiverse
 {% else %}
-deb http://archive.ubuntu.com/ubuntu/ {{ ubuntu_release[target_os_version] }}-backports main restricted universe multiverse
+deb http://archive.ubuntu.com/ubuntu/ {{ release }}-backports main restricted universe multiverse
 {% endif %}
 
+++ /dev/null
-ubuntu_release:
-  "16.04": xenial
-  "14.04": trusty
\ No newline at end of file
 
   when: ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux']
 
 - name: Install core packages
-  # we need to recompile the kernel, but we don't need libvirtd it will
-  # run in a container
   action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
   with_items:
     - deltarpm
     - screen
     - git
     - socat
-    #
     - sshpass
     - qemu-kvm
     - qemu-img
     - libxslt-devel
     - libffi-devel
     - openssl-devel
-    - zeromq2-devel
     - nginx
     - uwsgi
     - uwsgi-plugin-python
     - libffi-devel
     - python-devel
     - kpartx
-    # don't install kernel-devel here it will trigger unwanted kernel upgrade
-    # Mandatory Packages:
-    # Don't use yum groups, they don't work, expand them manually
-    # CentOS 'Development Tools' group
-#    - autoconf
-#    - automake
-#    - binutils
-#    - bison
-#    - flex
-#    - gcc
-#    - gcc-c++
-#    - gettext
-#    - libtool
-#    - make
-#    - patch
-#    - pkgconfig
-#    - redhat-rpm-config
-#    - rpm-build
-#    - rpm-sign
-    # Fedora 'C Development Tools' group
-    #  don't use ccache, it can get weird for kernel compiles
-#      - ccache
+
 
 # limitations under the License.
 ---
   - name: OS pre-workarounds
-    include: "{{ target_os_family }}.yml"
+    include: "{{ ansible_os_family }}.yml"
 
   - name: Install core packages
     action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
     register: pkg_mgr_results
     retries: "{{ pkg_mgr_retries }}"
     until: pkg_mgr_results|success
-    with_items: "{{ install_dependencies[target_os_family] }}"
+    with_items: "{{ install_dependencies[ansible_os_family] }}"
 
          -e img_modify_playbook='ubuntu_server_cloudimg_modify.yml' \
          -e target_os='Ubuntu' \
          -e YARD_IMG_ARCH='amd64' \
-         -e target_os_version='16.04' \
-         -e target_os_family='Debian' \
-         -e clone_dest='/usr/local/src' \
-         -e ubuntu_image='yardstick-trusty-server.raw' \
-         -e ubuntu_image_file='/tmp/workspace/yardstick/yardstick-trusty-server.raw' \
          -vvv -i inventory.ini load_images.yml