chore(*): remove WSL checks
This is no longer needed since roles can be excluded within the `~/.config/dotfiles/values.yaml` file.
This commit is contained in:
parent
9531d6ca47
commit
093df0ac09
|
@ -4,8 +4,6 @@ set -e
|
||||||
|
|
||||||
CONFIG_DIR="$HOME/.config/dotfiles"
|
CONFIG_DIR="$HOME/.config/dotfiles"
|
||||||
DOTFILES_DIR="$HOME/.dotfiles"
|
DOTFILES_DIR="$HOME/.dotfiles"
|
||||||
# TODO: Determine this automatically based on username or somehow.
|
|
||||||
IS_WSL=${IS_WSL:=false}
|
|
||||||
|
|
||||||
clone_or_update_dotfiles() {
|
clone_or_update_dotfiles() {
|
||||||
git -C $DOTFILES_DIR pull
|
git -C $DOTFILES_DIR pull
|
||||||
|
@ -20,11 +18,7 @@ install_dependencies() {
|
||||||
}
|
}
|
||||||
|
|
||||||
run_playbook() {
|
run_playbook() {
|
||||||
if [[ $IS_WSL ]]; then
|
ansible-playbook --diff --extra-vars "@${CONFIG_DIR}/values.yaml" --ask-become-pass "${DOTFILES_DIR}/main.yaml" "${@}"
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clone_or_update_dotfiles
|
clone_or_update_dotfiles
|
||||||
|
|
Loading…
Reference in a new issue