diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index a98cc9b..c52d70a 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -7,6 +7,7 @@ msg: Debug # basics - import_tasks: system_setup/hostname.yml + - import_tasks: system_setup/git.yml # install software # - import_tasks: software/repositories.yml - import_tasks: software/packages_zsh.yml diff --git a/roles/base/tasks/system_setup/git.yml b/roles/base/tasks/system_setup/git.yml new file mode 100644 index 0000000..eb68da8 --- /dev/null +++ b/roles/base/tasks/system_setup/git.yml @@ -0,0 +1,11 @@ +- name: base | system_setup | git config user.email + git_config: + name: user.email # not required. The name of the setting. If no value is supplied, the value will be read from the config if it has been set. + value: 'root@{{ ansible_fqdn }}' + scope: global + +- name: base | system_setup | git config user.name + git_config: + name: user.name + value: 'root' + scope: global \ No newline at end of file