Add git role
This commit is contained in:
parent
e279c9b5d1
commit
e9133534c4
4 changed files with 17 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
roles:
|
roles:
|
||||||
- bash
|
- bash
|
||||||
- dircolors
|
- dircolors
|
||||||
#- git
|
- git
|
||||||
- hushlogin
|
- hushlogin
|
||||||
- mintty
|
- mintty
|
||||||
- python
|
- python
|
||||||
|
|
16
roles/git/tasks/main.yml
Normal file
16
roles/git/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
- name: Create the git config directory
|
||||||
|
file:
|
||||||
|
path: ~/.config/git
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Deploy git config
|
||||||
|
file:
|
||||||
|
src: "{{ role_path }}/files/{{ item }}"
|
||||||
|
dest: "~/.config/git/{{ item }}"
|
||||||
|
state: link
|
||||||
|
force: yes
|
||||||
|
loop:
|
||||||
|
- config
|
||||||
|
- ignore
|
||||||
|
|
Loading…
Add table
Reference in a new issue