Specify git config on a per-user basis.
This commit is contained in:
parent
b69934072f
commit
6e4fffbe9d
@ -31,4 +31,4 @@ users:
|
|||||||
- main_fido
|
- main_fido
|
||||||
- backup_fido
|
- backup_fido
|
||||||
- homeassistant
|
- homeassistant
|
||||||
gitconfig: gitconfig_home
|
gitconfig: "gitconfig_home"
|
||||||
|
@ -14,6 +14,7 @@ users:
|
|||||||
- main_fido
|
- main_fido
|
||||||
- backup_fido
|
- backup_fido
|
||||||
- homeassistant
|
- homeassistant
|
||||||
|
gitconfig: "gitconfig_home"
|
||||||
zfs_snapshot_datasets:
|
zfs_snapshot_datasets:
|
||||||
- zroot/linux/archmain/home
|
- zroot/linux/archmain/home
|
||||||
- zroot/linux/archmain/be
|
- zroot/linux/archmain/be
|
||||||
@ -21,4 +22,3 @@ graphics_driver: "intel"
|
|||||||
build_user:
|
build_user:
|
||||||
name: talexander
|
name: talexander
|
||||||
group: talexander
|
group: talexander
|
||||||
gitconfig: gitconfig_home
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
||||||
bh = log --oneline --branches=* --remotes=* --graph --decorate
|
bh = log --oneline --branches=* --remotes=* --graph --decorate
|
||||||
[core]
|
[core]
|
||||||
excludesfile = /home/talexander/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
[pull]
|
[pull]
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
owner: "{{ account_name.stdout }}"
|
owner: "{{ account_name.stdout }}"
|
||||||
group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
when: gitconfig is defined
|
when: "users[account_name.stdout].gitconfig is defined"
|
||||||
loop:
|
loop:
|
||||||
- src: "{{ gitconfig }}"
|
- src: "{{ users[account_name.stdout].gitconfig }}"
|
||||||
dest: .gitconfig
|
dest: .gitconfig
|
||||||
|
|
||||||
- name: Copy files
|
- name: Copy files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user