From 49908de5e2e094b39a59e56870f8be4cf1fc72e0 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sun, 9 Mar 2025 17:03:00 -0400 Subject: [PATCH] Created playbook that installs and configures git --- playbooks/git.init.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 playbooks/git.init.yaml diff --git a/playbooks/git.init.yaml b/playbooks/git.init.yaml new file mode 100644 index 0000000..fb57e86 --- /dev/null +++ b/playbooks/git.init.yaml @@ -0,0 +1,34 @@ +--- +- name: Ensuring microservice infrastructure + hosts: all + tasks: + - name: Ensure git is installed + ansible.builtin.package: + name: git + state: present + become: true + - name: Ensure vim is installed + ansible.builtin.package: + name: vim + state: present + become: true + - name: Ensure git editor is configured + community.general.git_config: + name: core.editor + scope: global + value: vim + - name: Ensure git name is configured + community.general.git_config: + name: user.name + scope: global + value: admin@sukaato.moe + - name: Ensure git email is configured + community.general.git_config: + name: user.email + scope: global + value: admin@sukaato.moe + - name: Ensure git default branch name is configured + community.general.git_config: + name: init.defaultBranch + scope: global + value: main