From 01c1ca74a3ca50d67642200546b9d0c530dcc5dd Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 3 Jun 2022 21:11:27 +0100 Subject: [PATCH] Add WSL playbook to run Unix and Windows --- unix.yaml => Unix.yaml | 3 +++ WSL.yaml | 3 +++ Windows.yaml | 10 ---------- 3 files changed, 6 insertions(+), 10 deletions(-) rename unix.yaml => Unix.yaml (80%) create mode 100644 WSL.yaml diff --git a/unix.yaml b/Unix.yaml similarity index 80% rename from unix.yaml rename to Unix.yaml index 57fcd1e..46629d8 100644 --- a/unix.yaml +++ b/Unix.yaml @@ -15,3 +15,6 @@ - role: llvm - role: nodejs - role: python + + - role: wsl + when: '"WSL" in ansible_kernel' diff --git a/WSL.yaml b/WSL.yaml new file mode 100644 index 0000000..8d4672f --- /dev/null +++ b/WSL.yaml @@ -0,0 +1,3 @@ +--- +- import_playbook: Unix.yaml +- import_playbook: Windows.yaml diff --git a/Windows.yaml b/Windows.yaml index 779e46d..b78e6ee 100644 --- a/Windows.yaml +++ b/Windows.yaml @@ -1,14 +1,4 @@ --- -- import_playbook: unix.yaml - -- hosts: localhost - - # FIXME: Roles which depend on the win_git module can't be in the same - # playbook on the first run because the wsl role hasn't added the win_git - # module to the modules path yet. - roles: - - role: wsl - - hosts: windows roles: