set git config
This commit is contained in:
parent
b2a77c972e
commit
5a88d0c83e
3 changed files with 14 additions and 0 deletions
4
inventory/host_vars/self.yml
Normal file
4
inventory/host_vars/self.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
first_name: Pim
|
||||
last_name: Kunis
|
||||
full_name: "{{ first_name }} {{ last_name }}"
|
||||
email: pim@kunis.nl
|
|
@ -14,8 +14,13 @@
|
|||
- make
|
||||
- keepassxc
|
||||
- zsh
|
||||
- ripgrep
|
||||
- name: Set default shell to zsh
|
||||
become: true
|
||||
user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
shell: /usr/bin/zsh
|
||||
- name: Set git configuration
|
||||
template:
|
||||
src: "{{ role_path }}/templates/.gitconfig.j2"
|
||||
dest: "/home/{{ ansible_user_id }}/.gitconfig"
|
||||
|
|
5
roles/system/templates/.gitconfig.j2
Normal file
5
roles/system/templates/.gitconfig.j2
Normal file
|
@ -0,0 +1,5 @@
|
|||
[user]
|
||||
email = {{ email }}
|
||||
name = {{ full_name }}
|
||||
[core]
|
||||
editor = vim
|
Reference in a new issue