]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/git/tasks/main.yml
Psql configuration to show nice lines
[perso/Immae/Config/Ansible.git] / roles / git / tasks / main.yml
1 ---
2 - name: Config dirs
3 file:
4 state: directory
5 path: "$XDG_CONFIG_HOME/{{ item }}"
6 loop:
7 - tig
8 - git/templates_fretlink/hooks
9 - name: Config files
10 copy:
11 mode: preserve
12 src: "config_files/{{ item }}"
13 dest: "$XDG_CONFIG_HOME/{{ item }}"
14 loop:
15 - tig/config
16 - git/templates_fretlink/hooks/pre-push
17 - name: git config file
18 template:
19 src: config.j2
20 dest: $XDG_CONFIG_HOME/git/config
21 - name: Create tig state dir
22 file:
23 path: $XDG_STATE_HOME/tig
24 state: directory
25 - name: Link tig state dir
26 file:
27 path: "$XDG_DATA_HOME/tig"
28 src: "$XDG_STATE_HOME/tig"
29 state: link