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:
Kenneth Benzie 2022-12-03 18:36:56 +00:00
parent da4b8858d3
commit 02e595b3a3

View File

@ -1,12 +1,17 @@
---
- name: install apt packages
become: true
package:
apt:
name:
- tmux
- gawk
- jq
- sysstat
- urlview
- xclip
state: latest
- name: install apt package
when: '"WSL" not in ansible_kernel'
become: true
apt:
name: xsel
state: latest