From 4f8e59e04338a7dd0cd3d74c417ad50743be07d0 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Mon, 10 May 2021 14:56:12 -0400 Subject: [PATCH] enable wsl detection. do not run gnome tasks in wsl --- localdev.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/localdev.yml b/localdev.yml index b0f12dd..48f10b9 100644 --- a/localdev.yml +++ b/localdev.yml @@ -3,6 +3,11 @@ hosts: all tasks: + - name: Register WSL variable + ansible.builtin.shell: /bin/true + register: wsl + when: ansible_facts['kernel'] | regex_search("microsoft", ignorecase=True) + - name: Install the packages for Fedora import_tasks: dnf.yml when: ansible_facts['os_family']|lower == 'redhat' @@ -22,11 +27,15 @@ - name: Install rust via rustup import_tasks: rust.yml + - name: Create home directory structure + import_tasks: homedir.yml + - name: Configure gnome settings import_tasks: gnome.yml vars: tela_icons_url: https://cloud.penguincoder.org/s/KqzGj5oEfTp5G57/download/01-Tela.tar.xz layan_dark_url: https://cloud.penguincoder.org/s/GQ2ygcmk2FxBofg/download/Layan-dark.tar.xz + when: not wsl - name: Install bitwarden cli import_tasks: bitwarden.yml