diff --git a/playbooks/roles/git/tasks/main.yml b/playbooks/roles/git/tasks/main.yml index 363273b..edb553c 100644 --- a/playbooks/roles/git/tasks/main.yml +++ b/playbooks/roles/git/tasks/main.yml @@ -1,9 +1,7 @@ --- -- name: Set up gitconfig - shell: git config --global user.name "{{user_name}}" && git config --global user.email {{user_email}} - args: - creates: ~/.gitconfig - -- name: Add git pushall alias - shell: git config --global alias.pushall '!git remote | xargs -L1 git push --all' +- name: Link gitconfig + file: + src: ~/.dotfiles/git/gitconfig + dest: ~/.gitconfig + state: link