set git config

This commit is contained in:
Pim Kunis 2022-11-26 11:34:13 +01:00
parent b2a77c972e
commit 5a88d0c83e
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,4 @@
first_name: Pim
last_name: Kunis
full_name: "{{ first_name }} {{ last_name }}"
email: pim@kunis.nl

View file

@ -14,8 +14,13 @@
- make - make
- keepassxc - keepassxc
- zsh - zsh
- ripgrep
- name: Set default shell to zsh - name: Set default shell to zsh
become: true become: true
user: user:
name: "{{ ansible_user_id }}" name: "{{ ansible_user_id }}"
shell: /usr/bin/zsh shell: /usr/bin/zsh
- name: Set git configuration
template:
src: "{{ role_path }}/templates/.gitconfig.j2"
dest: "/home/{{ ansible_user_id }}/.gitconfig"

View file

@ -0,0 +1,5 @@
[user]
email = {{ email }}
name = {{ full_name }}
[core]
editor = vim