blob: 0e460b5aefd81c07a954e60a46c896892609e28b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# git ~~ roles/git/tasks/main.yml
# Init git user and settings
---
- name: enable gitdaemon
lineinfile:
path: /etc/rc.conf.local
regexp: "^gitdaemon_flags="
line: "gitdaemon_flags=--reuseaddr --base-path={{ gitdaemon_git_dir }}"
create: true
when: ansible_distribution == "OpenBSD"
- name: start and enable git-daemon service
service:
name: gitdaemon
state: restarted
enabled: true
|