Move git configs into dotfiles role
This commit is contained in:
parent
f7a29e3c1d
commit
bc4b9f8089
4 changed files with 13 additions and 0 deletions
10
Ansible/roles/dotfiles/tasks/git.yml
Normal file
10
Ansible/roles/dotfiles/tasks/git.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- name: (git) Link global git configs
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: ~/.{{ item }}
|
||||||
|
src: "{{ role_path }}/files/git/{{ item }}"
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
loop:
|
||||||
|
- gitconfig
|
||||||
|
- gitignore
|
|
@ -4,3 +4,6 @@
|
||||||
|
|
||||||
- name: Vim
|
- name: Vim
|
||||||
ansible.builtin.include_tasks: vim.yml
|
ansible.builtin.include_tasks: vim.yml
|
||||||
|
|
||||||
|
- name: Git
|
||||||
|
ansible.builtin.include_tasks: git.yml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue