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