Copy file to git_config

This commit is contained in:
Bertrand Benjamin 2018-08-23 18:00:30 +02:00
parent e9e34ec689
commit d09c29cebf
3 changed files with 11 additions and 17 deletions

3
files/gitconfig Normal file
View File

@ -0,0 +1,3 @@
[user]
name = Bertrand Benjamin
email = benjamin.bertrand@opytex.org

View File

@ -1,20 +1,4 @@
---
- name: git config name
git_config:
name: user.name
scope: global
value: "{{ item.name }}"
become_user: "{{ item.name }}"
with_items: "{{ me }}"
- email: git config email
git_config:
email: user.email
scope: global
value: "{{ item.mail }}"
become_user: "{{ item.name }}"
with_items: "{{ me }}"
- name: Copy urxvt Xdefault
template:
src: files/Xdefaults
@ -107,3 +91,10 @@
owner: "{{ item.username }}"
with_items: "{{ me }}"
- name: Copy gitconfig
template:
src: files/gitconfig
dest: /home/{{ item.username }}/.gitconfig
owner: "{{ item.username }}"
with_items: "{{ me }}"

View File

@ -1,7 +1,7 @@
---
me:
- { username: 'lafrite', password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1', uid: '1000', name: "Benjamin Bertrand", mail: "benjamin.bertrand@opytex.org"}
- { username: 'lafrite', password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1', uid: '1000'}
deploy_users:
- { username: 'waha', password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1', uid: '999'}