add git key and default branch configuration
This commit is contained in:
parent
cdddb6c001
commit
060db1e451
1 changed files with 12 additions and 0 deletions
|
@ -109,6 +109,18 @@
|
||||||
path: "{{ home_user }}/.gitolite.rc"
|
path: "{{ home_user }}/.gitolite.rc"
|
||||||
regex: "UMASK"
|
regex: "UMASK"
|
||||||
line: "\tUMASK => 0072,"
|
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: yes
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue