31 lines
713 B
YAML
31 lines
713 B
YAML
---
|
|
- name: Ensure tig is installed
|
|
apt:
|
|
name:
|
|
- vim
|
|
- git
|
|
- ripgrep
|
|
- tig
|
|
state: present
|
|
|
|
- name: Ensure tig configuration is present
|
|
template:
|
|
src: templates/tigrc.j2
|
|
dest: "{{ item.home }}/.tigrc"
|
|
owner: "{{ item.username }}"
|
|
group: "{{ item.group|default(item.username) }}"
|
|
mode: 0644
|
|
with_items: "{{ dev_box.users }}"
|
|
|
|
- name: Ensure diff-highlight is present
|
|
shell:
|
|
cmd: make
|
|
chdir: /usr/share/doc/git/contrib/diff-highlight
|
|
|
|
- name: Add diff-highlight as diff-pager for git
|
|
ini_file:
|
|
dest: /etc/gitconfig
|
|
section: core
|
|
option: pager
|
|
value: "/usr/share/doc/git/contrib/diff-highlight/diff-highlight | less --tabs=4 -RFX"
|