Created playbook that installs and configures git
This commit is contained in:
34
playbooks/git.init.yaml
Normal file
34
playbooks/git.init.yaml
Normal file
@@ -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
|
Reference in New Issue
Block a user