Skip SSH in WSL

This commit is contained in:
Anthony Rose 2020-11-24 00:36:52 +00:00
parent 01a14ec8bd
commit 12b97dc6c3
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
hosts: all hosts: all
vars: vars:
gui: false gui: false
wsl_distro: "{{ lookup('env', 'WSL_DISTRO_NAME') }}"
tasks: tasks:
- include_role: - include_role:
name: arch name: arch

View file

@ -4,4 +4,5 @@
when: gui == true when: gui == true
- include: modules.yml - include: modules.yml
- include: ssh.yml - include: ssh.yml
when: wsl_distro|length == 0
- include: solokeys.yml - include: solokeys.yml