Add bat role for Debian and macOS

This commit is contained in:
Kenneth Benzie 2022-05-12 19:58:43 +01:00
parent c9d2e66438
commit c2f1cd3201
4 changed files with 21 additions and 0 deletions

View File

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

View File

@ -0,0 +1,13 @@
---
- name: install apt package
become: true
apt:
name: bat
state: latest
- name: update bat alternative
become: true
alternatives:
name: bat
path: /usr/bin/batcat
link: /usr/local/bin/bat

View File

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

View File

@ -7,6 +7,7 @@
- role: neovim
- role: ag
- role: bat
- role: git
- role: tree