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: name:
- neovim - neovim
- node - node
- the_silver_searcher
state: latest state: latest
- name: clone config repo - name: clone config repo

View File

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

View File

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

View File

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

View File

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