add git key and default branch configuration

This commit is contained in:
rick 2022-12-22 12:40:31 +01:00
parent cdddb6c001
commit 060db1e451
Signed by: Rick
GPG key ID: 4A6223D66294EB20

View file

@ -109,6 +109,18 @@
path: "{{ home_user }}/.gitolite.rc"
regex: "UMASK"
line: "\tUMASK => 0072,"
- name: configuration de gitolite avec les clés cgit
ansible.builtin.lineinfile:
path: "{{ home_user }}/.gitolite.rc"
regex: "GIT_CONFIG_KEYS"
line: "\tGIT_CONFIG_KEYS => 'cgit\.owner cgit\.section cgit\.hide cgit\.desc',"
- name: configuration de la branche par défaut de git
community.general.git_config:
name: init.defaultBranch
scope: global
value: master
become: yes
become_user: "{{ user }}"