diff --git a/roles/bootstrap/handlers/git.yml b/roles/bootstrap/handlers/git.yml index 1fe2a15..24d22ea 100644 --- a/roles/bootstrap/handlers/git.yml +++ b/roles/bootstrap/handlers/git.yml @@ -304,3 +304,11 @@ scope: global state: present value: "{{ hostvars[inventory_hostname].users[ansible_facts['user_id']].git_profile.email }}" + - name: Set default initial branch name + become: true + community.general.git_config: + add_mode: replace-all + name: init.defaultBranch + scope: system + state: present + value: main