aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-12-16 11:03:38 +0100
committerbinary <me@rgoncalves.se>2020-12-16 16:10:25 +0100
commit2434c0a32c34d71343a2036130b3ae90151f28fa (patch)
tree995c46827544f57a39b9f306d3d624df2b78e3ec /roles/git/tasks/main.yml
parent9de78f13f2bf5ef37b4b0a098d970d3a518faaaf (diff)
downloadinfrastructure-2434c0a32c34d71343a2036130b3ae90151f28fa.tar.gz
Move gitdaemon in git role
Diffstat (limited to 'roles/git/tasks/main.yml')
-rw-r--r--roles/git/tasks/main.yml13
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
+
+
remember that computers suck.