From d1f3b1a9539cf5978cc6e5450a9a09a22c8d1e25 Mon Sep 17 00:00:00 2001 From: chatton Date: Mon, 4 Dec 2023 19:43:48 +0000 Subject: [PATCH] adding configure git role --- main.yml | 2 +- roles/configure_git/tasks/main.yml | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/main.yml b/main.yml index 0118ed0..80820df 100644 --- a/main.yml +++ b/main.yml @@ -1,4 +1,4 @@ --- - hosts: localhost roles: - - install_packages + - configure_git diff --git a/roles/configure_git/tasks/main.yml b/roles/configure_git/tasks/main.yml index 09c6320..eeb7551 100644 --- a/roles/configure_git/tasks/main.yml +++ b/roles/configure_git/tasks/main.yml @@ -1,11 +1,15 @@ --- -- name: Update Packages - ansible.builtin.apt: - upgrade: dist - update_cache: true +- git_config: + name: core.editor + scope: global + value: vim -- name: Install desired packages - ansible.builtin.apt: - pkg: - - foo - - foo-tools +- git_config: + name: user.name + scope: global + value: chatton + +- git_config: + name: user.email + scope: global + value: github.qpeyb@simplelogin.fr \ No newline at end of file