fix wsl check for non-wsl platforms

main
Andrew Coleman 2021-05-10 15:36:20 -04:00
parent 4f8e59e043
commit 640617030e
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,11 @@
ansible.builtin.shell: /bin/true ansible.builtin.shell: /bin/true
register: wsl register: wsl
when: ansible_facts['kernel'] | regex_search("microsoft", ignorecase=True) when: ansible_facts['kernel'] | regex_search("microsoft", ignorecase=True)
ignore_errors: true
- name: debug wsl
ansible.builtin.debug:
var: wsl
- name: Install the packages for Fedora - name: Install the packages for Fedora
import_tasks: dnf.yml import_tasks: dnf.yml
@ -35,7 +40,7 @@
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 when: wsl is skipped
- name: Install bitwarden cli - name: Install bitwarden cli
import_tasks: bitwarden.yml import_tasks: bitwarden.yml