summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-23 01:19:54 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-23 23:07:58 +0200
commit64719d7b2e06d026ae0d1a6dc1128b787718e2fe (patch)
tree54df0f6c763457094606e33d8be53a7908ba8fef /roles/cgit/tasks/main.yml
parentff4eb129eea3f3743f82e5f1f7858d43625dba3d (diff)
Configure git globals for cgit role
Diffstat (limited to 'roles/cgit/tasks/main.yml')
-rw-r--r--roles/cgit/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
index 17e7abaf..7828042a 100644
--- a/roles/cgit/tasks/main.yml
+++ b/roles/cgit/tasks/main.yml
@@ -25,6 +25,13 @@
system: true
password: "*"
+- name: "Set default branch name for new repos"
+ become: true
+ community.general.git_config:
+ name: init.defaultBranch
+ scope: system
+ value: main
+
- name: "Create git user .ssh directory"
become: true
ansible.builtin.file: