From 093df0ac09c557107566b79fcb0f077bab550cd0 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Wed, 20 Apr 2022 21:42:30 +0100
Subject: [PATCH] chore(*): remove WSL checks

This is no longer needed since roles can be excluded within the
`~/.config/dotfiles/values.yaml` file.
---
 bin/dotfiles | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/bin/dotfiles b/bin/dotfiles
index c5d30c8d..48784312 100755
--- a/bin/dotfiles
+++ b/bin/dotfiles
@@ -4,8 +4,6 @@ set -e
 
 CONFIG_DIR="$HOME/.config/dotfiles"
 DOTFILES_DIR="$HOME/.dotfiles"
-# TODO: Determine this automatically based on username or somehow.
-IS_WSL=${IS_WSL:=false}
 
 clone_or_update_dotfiles() {
   git -C $DOTFILES_DIR pull
@@ -20,11 +18,7 @@ install_dependencies() {
 }
 
 run_playbook() {
-  if [[ $IS_WSL ]]; then
-    ansible-playbook --diff --extra-vars "@${CONFIG_DIR}/values.yaml" --ask-become-pass "${DOTFILES_DIR}/main.yaml" --skip-tags skip-if-wsl "${@}"
-  else
-    ansible-playbook --diff --extra-vars "@${CONFIG_DIR}/values.yaml" --ask-become-pass "${DOTFILES_DIR}/main.yaml" "${@}"
-  fi
+  ansible-playbook --diff --extra-vars "@${CONFIG_DIR}/values.yaml" --ask-become-pass "${DOTFILES_DIR}/main.yaml" "${@}"
 }
 
 clone_or_update_dotfiles