blob: 8d19da43b462612a59e326554c5a2d230a9ca0cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
- 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 /tmp
unarchive:
src: /tmp/master.zip
dest: /tmp
when: stat_result.stat.exists == False
- name: Build open-vmdk
become: true
make:
chdir: /tmp/open-vmdk-master/vmdk
when: stat_result.stat.exists == False
- name: Install open-vmdk
become: true
make:
chdir: /tmp/open-vmdk-master/vmdk
target: install
when: stat_result.stat.exists == False
- name: Delete installation directory and archive
file:
path: "{{ item }}"
state: absent
loop:
- "/tmp/open-vmdk-master"
- "/tmp/master.zip"
when: stat_result.stat.exists == False
|