Log VM OS version, Sample VNF branch/commit ID
[yardstick.git] / ansible / roles / build_yardstick_image / tasks / post_build.yml
index abbf57c..14b7a3d 100644 (file)
 \r
 - set_fact:\r
     imgdest: "/var/lib/libvirt/images/{{ imgfile | basename}}"\r
-    name: "{{ (imgfile | basename | splitext)[0] }}"\r
-    ext: "{{ (imgfile | basename | splitext)[1] }}"\r
-\r
-- name: Verify if imgfile exists in libvirt images\r
-  stat:\r
-    path: "{{ imgdest }}"\r
-  register: imgdest_stat\r
-\r
-- set_fact:\r
-    imgdest: "/var/lib/libvirt/images/{{ name }}_autogen{{ ext }}"\r
-  when: imgdest_stat.stat.exists\r
 \r
 - name: Copy image to libvirt images\r
   shell: "cp {{ imgfile }} {{ imgdest }}"\r