1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

git config dynamic with vars

This commit is contained in:
eoli3n 2020-05-14 10:40:32 +02:00
parent c375e9c4fd
commit 3eff86f91d
5 changed files with 13 additions and 7 deletions

@ -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

@ -0,0 +1,3 @@
[user]
name = {{ git_name }}
email = {{ git_mail }}