diff --git a/dotfiles.yml b/dotfiles.yml index fc70638..963ddac 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -8,7 +8,7 @@ roles: - bash - dircolors - #- git + - git - hushlogin - mintty - python diff --git a/dotfiles/.config/git/config b/roles/git/files/config similarity index 100% rename from dotfiles/.config/git/config rename to roles/git/files/config diff --git a/dotfiles/.config/git/ignore b/roles/git/files/ignore similarity index 100% rename from dotfiles/.config/git/ignore rename to roles/git/files/ignore diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml new file mode 100644 index 0000000..294c5e1 --- /dev/null +++ b/roles/git/tasks/main.yml @@ -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 +