feat(config): exclude_roles option

This commit is contained in:
Oliver Davies 2022-04-17 17:01:58 +01:00
parent b462bad90f
commit 9531d6ca47
2 changed files with 37 additions and 27 deletions

25
group_vars/all Normal file
View file

@ -0,0 +1,25 @@
default_roles:
- alacritty
- ctop
- dconf
- docker
- fzf
- github-cli
- gnome-tweak-tools
- git
- htop
- jq
- neovim
- neovim-lsp
- notion-app
- npm
- platformsh-cli
- pv
- ripgrep
- starship-prompt
- stylua
- tldr
- tree
- tmux
- zsh
- zsh-antigen

View file

@ -1,29 +1,14 @@
--- ---
- hosts: localhost - hosts: localhost
roles: tasks:
- role: alacritty - name: Set roles
tags: set_fact:
- "skip-if-wsl" roles: "{{ default_roles | difference(exclude_roles | default([])) }}"
- role: ctop
- role: dconf - name: Display roles
- role: docker debug: "var=roles"
- role: fzf
- role: github-cli - name: Run roles
- role: gnome-tweak-tools include_role:
- role: git name: "{{ item }}"
- role: htop with_items: "{{ roles }}"
- role: jq
- role: neovim
- role: neovim-lsp
- role: notion-app
- role: npm
- role: platformsh-cli
- role: pv
- role: ripgrep
- role: starship-prompt
- role: stylua
- role: tldr
- role: tree
- role: tmux
- role: zsh
- role: zsh-antigen