Add ag role for Debian, macOS, and Windows

This commit is contained in:
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'