From 12b97dc6c31046db48077b90f4a1ebf94f46bd52 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 24 Nov 2020 00:36:52 +0000 Subject: [PATCH] Skip SSH in WSL --- admin-cli.yml | 1 + roles/opensuse-leap/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/admin-cli.yml b/admin-cli.yml index 3c11c1e..e98afd9 100755 --- a/admin-cli.yml +++ b/admin-cli.yml @@ -4,6 +4,7 @@ hosts: all vars: gui: false + wsl_distro: "{{ lookup('env', 'WSL_DISTRO_NAME') }}" tasks: - include_role: name: arch diff --git a/roles/opensuse-leap/tasks/main.yml b/roles/opensuse-leap/tasks/main.yml index 7a4d7a9..9065752 100644 --- a/roles/opensuse-leap/tasks/main.yml +++ b/roles/opensuse-leap/tasks/main.yml @@ -4,4 +4,5 @@ when: gui == true - include: modules.yml - include: ssh.yml + when: wsl_distro|length == 0 - include: solokeys.yml