Add ag role for Debian, macOS, and Windows

This commit is contained in:
Kenneth Benzie 2022-05-11 22:27:18 +01:00
parent 14c14353f8
commit 5dfb92522e
9 changed files with 23 additions and 7 deletions

View File

@ -0,0 +1,5 @@
---
- name: install homebrew package
apt:
name: the_silver_searcher
state: latest

View File

@ -0,0 +1,6 @@
---
- name: install apt package
become: true
apt:
name: silversearcher-ag
state: latest

View File

@ -0,0 +1,5 @@
---
- name: install choco package
win_chocolatey:
name: ag
state: latest

2
roles/ag/tasks/main.yaml Normal file
View File

@ -0,0 +1,2 @@
---
- include_tasks: '{{ansible_os_family}}.yaml'

View File

@ -4,7 +4,6 @@
name:
- neovim
- node
- the_silver_searcher
state: latest
- name: clone config repo

View File

@ -2,9 +2,7 @@
- name: install apt package
become: true
apt:
name:
- neovim
- silversearcher-ag
name: neovim
state: latest
- include_tasks: unix.yaml

View File

@ -3,7 +3,6 @@
win_chocolatey:
name:
- neovim
- ag
- nodejs
state: latest

View File

@ -4,6 +4,7 @@
roles:
- role: zsh
- role: tmux
- role: neovim
- role: git
- role: neovim
- role: ag
- role: python

View File

@ -13,8 +13,9 @@
roles:
- role: powershell
- role: neovim
- role: git
- role: neovim
- role: ag
- role: python
- role: autohotkey
- role: 1password