blob: 853ecb28300e20c106ba6b7c88cd97b1e56da680 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
---
- name: Config dirs
file:
state: directory
path: "$XDG_CONFIG_HOME/{{ item }}"
loop:
- tig
- git/templates_fretlink/hooks
- name: Config files
copy:
mode: preserve
src: "config_files/{{ config_item }}"
dest: "$XDG_CONFIG_HOME/{{ config_item }}"
loop:
- tig/config
- git/templates_fretlink/hooks/pre-push
loop_control:
loop_var: config_item
- name: git config file
template:
src: config.j2
dest: $XDG_CONFIG_HOME/git/config
- name: Create tig state dir
file:
path: $XDG_STATE_HOME/tig
state: directory
- name: Link tig state dir
file:
path: "$XDG_DATA_HOME/tig"
src: "$XDG_STATE_HOME/tig"
state: link
|