blob: f745a85924b9e64540e6095fac059165a8d09136 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: Copy admin key
copy:
src: "{{ git_admin_key }}"
dest: "{{ git_dir }}/admin.pub"
mode: 0600
owner: "{{ git_user }}"
group: "{{ git_group }}"
- name: Ensure sudo is available for become_user
package:
name: sudo
state: present
- name: Configure gitolite
command: gitolite setup -pk "{{ git_dir }}/admin.pub"
become: yes
become_user: "{{ git_user }}"
|