mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
git config dynamic with vars
This commit is contained in:
parent
c375e9c4fd
commit
3eff86f91d
@ -75,14 +75,18 @@ host1 ansible_user=user
|
||||
host2 ansible_user=user2
|
||||
```
|
||||
|
||||
##### 4. Configure SSH
|
||||
##### 4. Configure vars
|
||||
|
||||
You can configure desktop environment in ``group_vars/all.yml``
|
||||
|
||||
##### 5. Configure SSH
|
||||
|
||||
Push your SSH public key on all your ``users@hosts``
|
||||
```
|
||||
ssh-copy-id -i path/to/ssh/key.pub user@host
|
||||
```
|
||||
|
||||
##### 5. (Dry)Run
|
||||
##### 6. (Dry)Run
|
||||
|
||||
```
|
||||
ansible-playbook install.yml -CD
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
font: jetbrains mono
|
||||
user: user
|
||||
git_name: eoli3n
|
||||
git_mail: jkirsz@gmail.com
|
||||
|
@ -1,3 +0,0 @@
|
||||
[user]
|
||||
name = eoli3n
|
||||
email = jkirsz@gmail.com
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: git config file
|
||||
copy:
|
||||
src: gitconfig
|
||||
template:
|
||||
templates: gitconfig.j2
|
||||
dest: ~/.gitconfig
|
||||
|
3
roles/git/templates/gitconfig.j2
Normal file
3
roles/git/templates/gitconfig.j2
Normal file
@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = {{ git_name }}
|
||||
email = {{ git_mail }}
|
Loading…
Reference in New Issue
Block a user