From 02e595b3a32b284b07a990d66e180209fbe08620 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 3 Dec 2022 18:36:56 +0000 Subject: [PATCH] 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. --- roles/tmux/tasks/Debian.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/tmux/tasks/Debian.yaml b/roles/tmux/tasks/Debian.yaml index d0783f6..34cecc5 100644 --- a/roles/tmux/tasks/Debian.yaml +++ b/roles/tmux/tasks/Debian.yaml @@ -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