Add bat role for Debian and macOS
This commit is contained in:
parent
c9d2e66438
commit
c2f1cd3201
5
roles/bat/tasks/Darwin.yaml
Normal file
5
roles/bat/tasks/Darwin.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
homebrew:
|
||||
name: bat
|
||||
state: latest
|
13
roles/bat/tasks/Debian.yaml
Normal file
13
roles/bat/tasks/Debian.yaml
Normal 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
|
2
roles/bat/tasks/main.yaml
Normal file
2
roles/bat/tasks/main.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
Loading…
x
Reference in New Issue
Block a user