Don't install xclip or xsel in WSL

Newer WSL2 has issues with `xclip`/`xsel` behaviour which cause Windows
GUI's to freeze waiting for input from an already exited process.
Switching to `win32yank.exe` for clipboard integrations.
This commit is contained in:
2022-12-03 18:36:56 +00:00
parent da4b8858d3
commit 63ff47c3b2
3 changed files with 49 additions and 6 deletions

View File

@@ -3,6 +3,21 @@
pacman:
name:
- tmux
- xclip
- urlscan
state: latest
- name: install pacman package
when: '"WSL" not in ansible_kernel'
become: true
pacman:
name: xsel
state: latest
- name: remove pacman package
when: '"WSL" in ansible_kernel'
become: true
pacman:
name:
- xclip
- xsel
state: absent