enable wsl detection. do not run gnome tasks in wsl

main
Andrew Coleman 2021-05-10 14:56:12 -04:00
parent f8f77aa4d6
commit 4f8e59e043
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,11 @@
hosts: all hosts: all
tasks: 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 - name: Install the packages for Fedora
import_tasks: dnf.yml import_tasks: dnf.yml
when: ansible_facts['os_family']|lower == 'redhat' when: ansible_facts['os_family']|lower == 'redhat'
@ -22,11 +27,15 @@
- name: Install rust via rustup - name: Install rust via rustup
import_tasks: rust.yml import_tasks: rust.yml
- name: Create home directory structure
import_tasks: homedir.yml
- name: Configure gnome settings - name: Configure gnome settings
import_tasks: gnome.yml import_tasks: gnome.yml
vars: vars:
tela_icons_url: https://cloud.penguincoder.org/s/KqzGj5oEfTp5G57/download/01-Tela.tar.xz 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 layan_dark_url: https://cloud.penguincoder.org/s/GQ2ygcmk2FxBofg/download/Layan-dark.tar.xz
when: not wsl
- name: Install bitwarden cli - name: Install bitwarden cli
import_tasks: bitwarden.yml import_tasks: bitwarden.yml