From 6aca74ff3c8f3d8bbd744a728617262d572dc240 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 2 May 2022 10:42:28 +0100 Subject: [PATCH] Split up playbook to avoid win_git missing errors --- main.yaml | 20 -------------------- unix.yaml | 9 +++++++++ windows.yaml | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 20 deletions(-) delete mode 100644 main.yaml create mode 100644 unix.yaml create mode 100644 windows.yaml diff --git a/main.yaml b/main.yaml deleted file mode 100644 index 0855457..0000000 --- a/main.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- hosts: localhost - - roles: - - role: zsh - - role: tmux - - role: neovim - - role: git - - role: python - - role: wsl - when: '"WSL" in ansible_kernel' - -- hosts: windows - - roles: - - role: neovim - - role: git - - role: python - - role: autohotkey - - role: 1password diff --git a/unix.yaml b/unix.yaml new file mode 100644 index 0000000..8b236c2 --- /dev/null +++ b/unix.yaml @@ -0,0 +1,9 @@ +--- +- hosts: localhost + + roles: + - role: zsh + - role: tmux + - role: neovim + - role: git + - role: python diff --git a/windows.yaml b/windows.yaml new file mode 100644 index 0000000..3fb21ac --- /dev/null +++ b/windows.yaml @@ -0,0 +1,19 @@ +--- +- 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: + - role: neovim + - role: git + - role: python + - role: autohotkey + - role: 1password