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.
25 lines
374 B
YAML
25 lines
374 B
YAML
---
|
|
- name: install dnf packages
|
|
dnf:
|
|
name:
|
|
- tmux
|
|
- urlscan
|
|
- sysstat
|
|
state: latest
|
|
|
|
- name: install dnf package
|
|
when: '"WSL" not in ansible_kernel'
|
|
become: true
|
|
dnf:
|
|
name: xsel
|
|
state: latest
|
|
|
|
- name: remove dnf package
|
|
when: '"WSL" in ansible_kernel'
|
|
become: true
|
|
dnf:
|
|
name:
|
|
- xclip
|
|
- xsel
|
|
state: absent
|