summaryrefslogblamecommitdiff
path: root/roles/git/tasks/main.yml
blob: e2a5bbf84ff7adfa9d6059eec00668e2813c6663 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                    








                                              












                                     
---
- 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