summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2018-06-28 23:12:45 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2018-06-28 23:12:45 +0900
commit24415f2f75f9caf49108e89723b0991a378255d9 (patch)
treef2c0190c45888f0f6adea43500b4778c48ec4a41
parent86f71d4334f2269ff8f0268d200f03b73e1c26b7 (diff)
downloadvyos-vm-images-24415f2f75f9caf49108e89723b0991a378255d9.tar.gz
vyos-vm-images-24415f2f75f9caf49108e89723b0991a378255d9.zip
Add roles/install-open-vmdk
-rw-r--r--roles/install-open-vmdk/tasks/main.yml20
-rw-r--r--vmware.yml1
2 files changed, 21 insertions, 0 deletions
diff --git a/roles/install-open-vmdk/tasks/main.yml b/roles/install-open-vmdk/tasks/main.yml
new file mode 100644
index 0000000..dedece0
--- /dev/null
+++ b/roles/install-open-vmdk/tasks/main.yml
@@ -0,0 +1,20 @@
+- name: Check vmdk-convert exists
+ stat:
+ path: /usr/bin/vmdk-convert
+ register: stat_result
+- name: Download open-vmdk
+ get_url:
+ url: https://github.com/vmware/open-vmdk/archive/master.zip
+ dest: /tmp/master.zip
+ when: stat_result.stat.exists == False
+- name: Extract master.zip into /var/lib/foo
+ unarchive:
+ src: /tmp/master.zip
+ dest: /tmp
+ when: stat_result.stat.exists == False
+- name: Install open-vmdk
+ become: true
+ make:
+ chdir: /tmp/open-vmdk-master
+ target: install
+ when: stat_result.stat.exists == False
diff --git a/vmware.yml b/vmware.yml
index d0f6afe..a4a43ed 100644
--- a/vmware.yml
+++ b/vmware.yml
@@ -23,5 +23,6 @@
- install-grub
- install-persistence-conf
- unmount-all
+ - install-open-vmdk
- vmware-ova
- release