aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/git/tasks/main.yml13
-rw-r--r--roles/stagit/tasks/main.yml11
2 files changed, 13 insertions, 11 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
+
+
diff --git a/roles/stagit/tasks/main.yml b/roles/stagit/tasks/main.yml
index e0c513d..830416e 100644
--- a/roles/stagit/tasks/main.yml
+++ b/roles/stagit/tasks/main.yml
@@ -59,17 +59,6 @@
minute: "5"
job: "cd /var/www/htdocs/stagit && ./generate-static-git.sh"
-- name: enable gitdaemon
- lineinfile:
- path: /etc/rc.conf.local
- regexp: "^gitdaemon_flags="
- line: "gitdaemon_flags=--reuseaddr --base-path=/data/git"
-
-- name: start gitdaemon
- service:
- name: gitdaemon
- state: restarted
-
- name: execute static-page generation script once
shell: ./generate-static-git.sh
args:
remember that computers suck.