diff options
Diffstat (limited to 'roles/git/tasks')
-rw-r--r-- | roles/git/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 9e8c7c6..b9229e2 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -23,3 +23,16 @@ state: directory mode: 0741 +# openbsd only +- name: enable gitdaemon + lineinfile: + path: /etc/rc.conf.local + regexp: "^gitdaemon_flags=" + line: "gitdaemon_flags=--reuseaddr --base-path={{ git_dir }}" + +- name: start gitdaemon + service: + name: gitdaemon + state: restarted + + |