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






                                       
                    








                                              












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