Skip to content

Commit 646190e

Browse files
committed
fix: add unzip dependency for Arch Linux (closes #108)
1 parent 542f65e commit 646190e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

roles/system/tasks/Archlinux.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,46 @@
1111
name:
1212
- jq
1313
- open-iscsi
14+
- unzip
1415
state: present
1516
become: true
17+
18+
# WSL-specific win32yank installation
19+
- name: System | Detecting win32yank
20+
ansible.builtin.stat:
21+
path: /usr/local/bin/win32yank.exe
22+
register: win32yank_installed
23+
when: ansible_host_environment_is_wsl
24+
25+
- name: "System | Install win32yank.exe"
26+
when:
27+
- ansible_host_environment_is_wsl
28+
- not win32yank_installed.stat.exists
29+
block:
30+
- name: Download win32yank zip
31+
ansible.builtin.get_url:
32+
url: https://github.com/equalsraf/win32yank/releases/download/v0.0.4/win32yank-x64.zip
33+
dest: /tmp/win32yank.zip
34+
mode: "0755"
35+
36+
- name: System | Unzip win32yank.exe
37+
ansible.builtin.unarchive:
38+
src: /tmp/win32yank.zip
39+
dest: /tmp
40+
mode: "0755"
41+
42+
- name: System | Copy win32yank into path
43+
ansible.builtin.copy:
44+
remote_src: true
45+
src: /tmp/win32yank.exe
46+
dest: /usr/local/bin/win32yank.exe
47+
mode: "0755"
48+
become: true
49+
50+
- name: System | Remove tmp files
51+
ansible.builtin.file:
52+
path: "{{ item }}"
53+
state: absent
54+
loop:
55+
- /tmp/win32yank.zip
56+
- /tmp/win32yank.exe

0 commit comments

Comments
 (0)