Add git config and etckeeper

This commit is contained in:
Daniel A. Maierhofer
2018-07-13 13:22:00 +02:00
parent 99d768fa8c
commit 01603d2043
3 changed files with 27 additions and 1 deletions

21
tasks/git.yml Normal file
View File

@@ -0,0 +1,21 @@
---
- name: git - gitconfig user.name
git_config:
name: user.name
scope: global
value: "root ({{ ansible_hostname }})"
- name: git - gitconfig user.email
git_config:
name: user.email
scope: global
value: "admin@fet.at"
- name: git - gitconfig core.editor
git_config:
name: core.editor
scope: global
value: "vim"
- name: git - init etckeeper
command: etckeeper init creates=/etc/.git/