Split up playbook to avoid win_git missing errors

This commit is contained in:
Kenneth Benzie 2022-05-02 10:42:28 +01:00
parent 3652b3c9cb
commit 6aca74ff3c
3 changed files with 28 additions and 20 deletions

View File

@ -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

9
unix.yaml Normal file
View File

@ -0,0 +1,9 @@
---
- hosts: localhost
roles:
- role: zsh
- role: tmux
- role: neovim
- role: git
- role: python

19
windows.yaml Normal file
View File

@ -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