summaryrefslogblamecommitdiff
path: root/roles/git/tasks/main.yml
blob: b847d1d327b5229c3c01c4123288d9b6fa567e0c (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/{{ item }}"
    dest: "$XDG_CONFIG_HOME/{{ item }}"
  loop:
    - tig/config
    - git/templates_fretlink/hooks/pre-push
- 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