etc-git: use the git_config module instead of ini
This commit is contained in:
parent
d033d9773a
commit
f20b95f075
|
@ -21,11 +21,11 @@
|
|||
register: git_init
|
||||
|
||||
- name: Git user.email is configured
|
||||
ini_file:
|
||||
dest: /etc/.git/config
|
||||
section: user
|
||||
option: email
|
||||
value: "<root@{{ ansible_fqdn | default('localhost.localdomain') }}>"
|
||||
git_config:
|
||||
name: user.email
|
||||
repo: /etc
|
||||
scope: local
|
||||
value: "root@{{ ansible_fqdn | default('localhost') }}"
|
||||
|
||||
- name: /etc/.git is secure
|
||||
file:
|
||||
|
|
Loading…
Reference in a new issue